@baseplate-dev/plugin-auth 3.0.4 → 4.0.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 (352) hide show
  1. package/dist/auth/core/common.d.ts +2 -5
  2. package/dist/auth/core/common.d.ts.map +1 -1
  3. package/dist/auth/core/common.js +14 -14
  4. package/dist/auth/core/common.js.map +1 -1
  5. package/dist/auth/core/node.d.ts +3 -3
  6. package/dist/auth/core/node.d.ts.map +1 -1
  7. package/dist/auth/core/node.js +5 -8
  8. package/dist/auth/core/node.js.map +1 -1
  9. package/dist/auth/core/web.d.ts +3 -3
  10. package/dist/auth/core/web.d.ts.map +1 -1
  11. package/dist/auth/core/web.js +4 -5
  12. package/dist/auth/core/web.js.map +1 -1
  13. package/dist/auth0/core/common.d.ts +3 -5
  14. package/dist/auth0/core/common.d.ts.map +1 -1
  15. package/dist/auth0/core/common.js +11 -14
  16. package/dist/auth0/core/common.js.map +1 -1
  17. package/dist/auth0/core/node.d.ts +3 -3
  18. package/dist/auth0/core/node.d.ts.map +1 -1
  19. package/dist/auth0/core/node.js +5 -8
  20. package/dist/auth0/core/node.js.map +1 -1
  21. package/dist/auth0/core/web.d.ts +3 -3
  22. package/dist/auth0/core/web.d.ts.map +1 -1
  23. package/dist/auth0/core/web.js +4 -5
  24. package/dist/auth0/core/web.js.map +1 -1
  25. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts +39 -25
  26. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +1 -1
  27. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js +18 -24
  28. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +1 -1
  29. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +16 -0
  30. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +1 -1
  31. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts +1 -0
  32. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts.map +1 -1
  33. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js +1 -0
  34. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js.map +1 -1
  35. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts +9 -0
  36. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +1 -1
  37. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js +15 -2
  38. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js.map +1 -1
  39. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts +10 -0
  40. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +1 -1
  41. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js +18 -2
  42. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js.map +1 -1
  43. package/dist/auth0/generators/fastify/auth0-module/templates/module/schema/user-session.queries.ts +22 -0
  44. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +0 -5
  45. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +1 -1
  46. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +1 -10
  47. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
  48. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +0 -18
  49. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +1 -1
  50. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts +0 -2
  51. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts.map +1 -1
  52. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js +0 -2
  53. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js.map +1 -1
  54. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts +1 -7
  55. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts.map +1 -1
  56. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js +3 -12
  57. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js.map +1 -1
  58. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts +0 -1
  59. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +1 -1
  60. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js +0 -1
  61. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +1 -1
  62. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +0 -23
  63. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +1 -1
  64. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +4 -33
  65. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +1 -1
  66. package/dist/local-auth/admin/common.d.ts +3 -2
  67. package/dist/local-auth/admin/common.d.ts.map +1 -1
  68. package/dist/local-auth/admin/common.js +6 -7
  69. package/dist/local-auth/admin/common.js.map +1 -1
  70. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +25 -4
  71. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +1 -1
  72. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +16 -13
  73. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +1 -1
  74. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +24 -7
  75. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +1 -1
  76. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts +0 -1
  77. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +1 -1
  78. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js +0 -1
  79. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +1 -1
  80. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +13 -6
  81. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +1 -1
  82. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js +5 -12
  83. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +1 -1
  84. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +12 -5
  85. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +1 -1
  86. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js +3 -12
  87. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +1 -1
  88. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts +3 -2
  89. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +1 -1
  90. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +26 -7
  91. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +1 -1
  92. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +34 -12
  93. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +25 -4
  94. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +1 -1
  95. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +35 -25
  96. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +1 -1
  97. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +24 -7
  98. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +1 -1
  99. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts +0 -1
  100. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +1 -1
  101. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js +0 -1
  102. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +1 -1
  103. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +13 -6
  104. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +1 -1
  105. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js +5 -12
  106. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +1 -1
  107. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +24 -7
  108. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +1 -1
  109. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js +3 -12
  110. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +1 -1
  111. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts +3 -2
  112. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +1 -1
  113. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +22 -6
  114. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +1 -1
  115. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +30 -11
  116. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +1 -1
  117. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js +7 -11
  118. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +1 -1
  119. package/dist/local-auth/admin/node.d.ts +3 -6
  120. package/dist/local-auth/admin/node.d.ts.map +1 -1
  121. package/dist/local-auth/admin/node.js +15 -18
  122. package/dist/local-auth/admin/node.js.map +1 -1
  123. package/dist/local-auth/admin/web.d.ts +3 -4
  124. package/dist/local-auth/admin/web.d.ts.map +1 -1
  125. package/dist/local-auth/admin/web.js +22 -21
  126. package/dist/local-auth/admin/web.js.map +1 -1
  127. package/dist/local-auth/core/common.d.ts +3 -5
  128. package/dist/local-auth/core/common.d.ts.map +1 -1
  129. package/dist/local-auth/core/common.js +10 -13
  130. package/dist/local-auth/core/common.js.map +1 -1
  131. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +12 -3
  132. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +1 -1
  133. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js +0 -1
  134. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js.map +1 -1
  135. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +36 -18
  136. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts.map +1 -1
  137. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +0 -3
  138. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +1 -1
  139. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +0 -3
  140. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js.map +1 -1
  141. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +13 -6
  142. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +1 -1
  143. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +5 -12
  144. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js.map +1 -1
  145. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +0 -1
  146. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +1 -1
  147. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +0 -1
  148. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +1 -1
  149. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +48 -30
  150. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +1 -1
  151. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +6 -49
  152. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js.map +1 -1
  153. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +1 -0
  154. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +1 -1
  155. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +9 -2
  156. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +1 -1
  157. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +10 -2
  158. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +2 -2
  159. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +1 -1
  160. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +0 -1
  161. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +1 -1
  162. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +2 -2
  163. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -1
  164. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +3 -0
  165. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
  166. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +6 -1
  167. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
  168. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +12 -2
  169. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
  170. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +5 -2
  171. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -1
  172. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +16 -0
  173. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -1
  174. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +19 -0
  175. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +12 -3
  176. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -1
  177. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +1 -8
  178. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -1
  179. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +36 -7
  180. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
  181. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +0 -1
  182. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -1
  183. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +0 -1
  184. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +1 -1
  185. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +13 -6
  186. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -1
  187. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +5 -12
  188. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -1
  189. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +48 -9
  190. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
  191. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +5 -13
  192. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -1
  193. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +11 -2
  194. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -1
  195. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +12 -2
  196. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +11 -2
  197. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -1
  198. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +12 -2
  199. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +24 -7
  200. package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +1 -1
  201. package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts +0 -1
  202. package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts.map +1 -1
  203. package/dist/local-auth/core/generators/react-session/generated/template-paths.js +0 -1
  204. package/dist/local-auth/core/generators/react-session/generated/template-paths.js.map +1 -1
  205. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +13 -7
  206. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -1
  207. package/dist/local-auth/core/generators/react-session/generated/template-renderers.js +5 -12
  208. package/dist/local-auth/core/generators/react-session/generated/template-renderers.js.map +1 -1
  209. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +24 -7
  210. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -1
  211. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +4 -15
  212. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js.map +1 -1
  213. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +12 -3
  214. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -1
  215. package/dist/local-auth/core/generators/react-session/react-session.generator.js +0 -1
  216. package/dist/local-auth/core/generators/react-session/react-session.generator.js.map +1 -1
  217. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +1 -1
  218. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +10 -2
  219. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +1 -1
  220. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +11 -2
  221. package/dist/local-auth/core/node.d.ts +3 -3
  222. package/dist/local-auth/core/node.d.ts.map +1 -1
  223. package/dist/local-auth/core/node.js +5 -8
  224. package/dist/local-auth/core/node.js.map +1 -1
  225. package/dist/local-auth/core/web.d.ts +3 -3
  226. package/dist/local-auth/core/web.d.ts.map +1 -1
  227. package/dist/local-auth/core/web.js +4 -5
  228. package/dist/local-auth/core/web.js.map +1 -1
  229. package/dist/placeholder-auth/core/common.d.ts +2 -5
  230. package/dist/placeholder-auth/core/common.d.ts.map +1 -1
  231. package/dist/placeholder-auth/core/common.js +10 -13
  232. package/dist/placeholder-auth/core/common.js.map +1 -1
  233. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +0 -12
  234. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +1 -1
  235. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +0 -2
  236. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts.map +1 -1
  237. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +0 -2
  238. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js.map +1 -1
  239. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts +1 -7
  240. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts.map +1 -1
  241. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js +2 -14
  242. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js.map +1 -1
  243. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +0 -1
  244. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +1 -1
  245. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +0 -1
  246. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +1 -1
  247. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +0 -15
  248. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +1 -1
  249. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +2 -31
  250. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +1 -1
  251. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +0 -5
  252. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +1 -1
  253. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js +1 -7
  254. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js.map +1 -1
  255. package/dist/placeholder-auth/core/node.d.ts +3 -3
  256. package/dist/placeholder-auth/core/node.d.ts.map +1 -1
  257. package/dist/placeholder-auth/core/node.js +5 -8
  258. package/dist/placeholder-auth/core/node.js.map +1 -1
  259. package/dist/placeholder-auth/core/web.d.ts +3 -3
  260. package/dist/placeholder-auth/core/web.d.ts.map +1 -1
  261. package/dist/placeholder-auth/core/web.js +4 -5
  262. package/dist/placeholder-auth/core/web.js.map +1 -1
  263. package/dist/web/assets/__federation_expose_auth0CoreCommon-DLSGXjCI.js +40 -0
  264. package/dist/web/assets/__federation_expose_auth0CoreCommon-DLSGXjCI.js.map +1 -0
  265. package/dist/web/assets/{__federation_expose_auth0CoreWeb-B9jV1EyN.js → __federation_expose_auth0CoreWeb-C7FfhlmF.js} +9 -10
  266. package/dist/web/assets/{__federation_expose_auth0CoreWeb-B9jV1EyN.js.map → __federation_expose_auth0CoreWeb-C7FfhlmF.js.map} +1 -1
  267. package/dist/web/assets/__federation_expose_authCoreCommon-BF58isGa.js +29 -0
  268. package/dist/web/assets/__federation_expose_authCoreCommon-BF58isGa.js.map +1 -0
  269. package/dist/web/assets/{__federation_expose_authCoreWeb-CTQI1rXb.js → __federation_expose_authCoreWeb-DMq9M88g.js} +10 -11
  270. package/dist/web/assets/{__federation_expose_authCoreWeb-CTQI1rXb.js.map → __federation_expose_authCoreWeb-DMq9M88g.js.map} +1 -1
  271. package/dist/web/assets/{__federation_expose_local-authAdminCommon-C0_ovnDb.js → __federation_expose_local-authAdminCommon-sQw4q5YX.js} +8 -9
  272. package/dist/web/assets/__federation_expose_local-authAdminCommon-sQw4q5YX.js.map +1 -0
  273. package/dist/web/assets/__federation_expose_local-authAdminWeb-9FbO89NR.js +41 -0
  274. package/dist/web/assets/__federation_expose_local-authAdminWeb-9FbO89NR.js.map +1 -0
  275. package/dist/web/assets/__federation_expose_local-authCoreCommon-CpUK09_4.js +21 -0
  276. package/dist/web/assets/__federation_expose_local-authCoreCommon-CpUK09_4.js.map +1 -0
  277. package/dist/web/assets/{__federation_expose_local-authCoreWeb-Dz4oU0uP.js → __federation_expose_local-authCoreWeb-Czp0GaY1.js} +9 -10
  278. package/dist/web/assets/{__federation_expose_local-authCoreWeb-Dz4oU0uP.js.map → __federation_expose_local-authCoreWeb-Czp0GaY1.js.map} +1 -1
  279. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CFDDdOMo.js +23 -0
  280. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CFDDdOMo.js.map +1 -0
  281. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-KJ8YuuIQ.js → __federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js} +9 -13
  282. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-KJ8YuuIQ.js.map → __federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js.map} +1 -1
  283. package/dist/web/assets/{__federation_fn_import-CVjKjdRb.js → __federation_fn_import-DsXcpNlB.js} +2 -2
  284. package/dist/web/assets/{__federation_fn_import-CVjKjdRb.js.map → __federation_fn_import-DsXcpNlB.js.map} +1 -1
  285. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BTmJxb08.js → web-zqe3PPcn.js} +37 -118
  286. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-zqe3PPcn.js.map +1 -0
  287. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-FK4Jv94w.js → project-builder-lib-CmgMfkI5.js} +2185 -2171
  288. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CmgMfkI5.js.map +1 -0
  289. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-jZLf5m_y.js → ui-components-D1Dayhn9.js} +5 -5
  290. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-jZLf5m_y.js.map → ui-components-D1Dayhn9.js.map} +1 -1
  291. package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-CAgM5SRt.js → utils-BO5VHrCf.js} +58 -6
  292. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-BO5VHrCf.js.map +1 -0
  293. package/dist/web/assets/__federation_shared_@tanstack/{react-router-DynsSbJG.js → react-router-CNzDweD5.js} +2 -2
  294. package/dist/web/assets/__federation_shared_@tanstack/{react-router-DynsSbJG.js.map → react-router-CNzDweD5.js.map} +1 -1
  295. package/dist/web/assets/{get-auth-plugin-definition-DqZ2Eg7c.js → get-auth-plugin-definition-BV2O8wTa.js} +2 -2
  296. package/dist/web/assets/{get-auth-plugin-definition-DqZ2Eg7c.js.map → get-auth-plugin-definition-BV2O8wTa.js.map} +1 -1
  297. package/dist/web/assets/{index-Dccn3WBN.js → index-BL7fotl7.js} +2 -2
  298. package/dist/web/assets/{index-Dccn3WBN.js.map → index-BL7fotl7.js.map} +1 -1
  299. package/dist/web/assets/{index.esm-DeCjXqFv.js → index.esm-B4RpOlq_.js} +2 -2
  300. package/dist/web/assets/{index.esm-DeCjXqFv.js.map → index.esm-B4RpOlq_.js.map} +1 -1
  301. package/dist/web/assets/{isEqual-DAXqKRba.js → isEqual-BQtm2LNT.js} +5 -5
  302. package/dist/web/assets/{isEqual-DAXqKRba.js.map → isEqual-BQtm2LNT.js.map} +1 -1
  303. package/dist/web/assets/{model-merger-kOQ_dmiE.js → model-merger-BwRNqcBu.js} +194 -81
  304. package/dist/web/assets/model-merger-BwRNqcBu.js.map +1 -0
  305. package/dist/web/assets/{plugin-definition-JFxKP18O.js → plugin-definition-B9d2CoQL.js} +2 -2
  306. package/dist/web/assets/{plugin-definition-JFxKP18O.js.map → plugin-definition-B9d2CoQL.js.map} +1 -1
  307. package/dist/web/assets/{plugin-definition-CxKhFkmJ.js → plugin-definition-BMTsmwyH.js} +2 -2
  308. package/dist/web/assets/{plugin-definition-CxKhFkmJ.js.map → plugin-definition-BMTsmwyH.js.map} +1 -1
  309. package/dist/web/assets/{plugin-definition-DKygiFuR.js → plugin-definition-CHD5r-h7.js} +2 -2
  310. package/dist/web/assets/{plugin-definition-DKygiFuR.js.map → plugin-definition-CHD5r-h7.js.map} +1 -1
  311. package/dist/web/assets/{plugin-definition-qkkt1X28.js → plugin-definition-DA9rJBcS.js} +2 -2
  312. package/dist/web/assets/{plugin-definition-qkkt1X28.js.map → plugin-definition-DA9rJBcS.js.map} +1 -1
  313. package/dist/web/assets/{react-DA5A88WZ.js → react-B9vhIZMy.js} +2 -2
  314. package/dist/web/assets/{react-DA5A88WZ.js.map → react-B9vhIZMy.js.map} +1 -1
  315. package/dist/web/assets/remoteEntry.js +10 -10
  316. package/dist/web/assets/{styles-CfTjrsB-.js → styles-CEm5K1iU.js} +3 -3
  317. package/dist/web/assets/{styles-CfTjrsB-.js.map → styles-CEm5K1iU.js.map} +1 -1
  318. package/package.json +14 -13
  319. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.gql +0 -10
  320. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.ts +0 -30
  321. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.gql +0 -7
  322. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.gql +0 -7
  323. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -18
  324. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
  325. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
  326. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js +0 -22
  327. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
  328. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.ts +0 -39
  329. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.gql +0 -5
  330. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/queries.gql +0 -17
  331. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.gql +0 -7
  332. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -14
  333. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
  334. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
  335. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js +0 -23
  336. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
  337. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.ts +0 -35
  338. package/dist/web/assets/__federation_expose_auth0CoreCommon-DxPG_Wc0.js +0 -43
  339. package/dist/web/assets/__federation_expose_auth0CoreCommon-DxPG_Wc0.js.map +0 -1
  340. package/dist/web/assets/__federation_expose_authCoreCommon-Cxa_7fkO.js +0 -29
  341. package/dist/web/assets/__federation_expose_authCoreCommon-Cxa_7fkO.js.map +0 -1
  342. package/dist/web/assets/__federation_expose_local-authAdminCommon-C0_ovnDb.js.map +0 -1
  343. package/dist/web/assets/__federation_expose_local-authAdminWeb-GqHU6av7.js +0 -40
  344. package/dist/web/assets/__federation_expose_local-authAdminWeb-GqHU6av7.js.map +0 -1
  345. package/dist/web/assets/__federation_expose_local-authCoreCommon-PHXPCKoj.js +0 -27
  346. package/dist/web/assets/__federation_expose_local-authCoreCommon-PHXPCKoj.js.map +0 -1
  347. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CrB_sJO_.js +0 -26
  348. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CrB_sJO_.js.map +0 -1
  349. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BTmJxb08.js.map +0 -1
  350. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-FK4Jv94w.js.map +0 -1
  351. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-CAgM5SRt.js.map +0 -1
  352. package/dist/web/assets/model-merger-kOQ_dmiE.js.map +0 -1
@@ -5,6 +5,9 @@ export interface Auth0Auth0ModuleRenderers {
5
5
  management: {
6
6
  render: (options: Omit<RenderTsTemplateFileActionInput<typeof AUTH0_AUTH0_MODULE_TEMPLATES.management>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
7
7
  };
8
+ userSessionQueries: {
9
+ render: (options: Omit<RenderTsTemplateFileActionInput<typeof AUTH0_AUTH0_MODULE_TEMPLATES.userSessionQueries>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
10
+ };
8
11
  userSessionService: {
9
12
  render: (options: Omit<RenderTsTemplateFileActionInput<typeof AUTH0_AUTH0_MODULE_TEMPLATES.userSessionService>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
10
13
  };
@@ -44,6 +47,12 @@ export declare const AUTH0_AUTH0_MODULE_RENDERERS: {
44
47
  config: {};
45
48
  }>>;
46
49
  paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").Auth0Auth0ModulePaths>;
50
+ pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
51
+ builder: {};
52
+ }>>;
53
+ prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
54
+ prisma: {};
55
+ }>>;
47
56
  typescriptFile: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").TypescriptFileProvider>;
48
57
  userSessionTypesImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
49
58
  UserSessionPayload: {
@@ -1 +1 @@
1
- {"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAYzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAEpE,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE;QACV,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,4BAA4B,CAAC,UAAU,CAC/C,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;IACF,kBAAkB,EAAE;QAClB,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,4BAA4B,CAAC,kBAAkB,CACvD,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAyDD,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxC,CAAC"}
1
+ {"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAczD,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAEpE,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE;QACV,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,4BAA4B,CAAC,UAAU,CAC/C,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;IACF,kBAAkB,EAAE;QAClB,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,4BAA4B,CAAC,kBAAkB,CACvD,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;IACF,kBAAkB,EAAE;QAClB,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,4BAA4B,CAAC,kBAAkB,CACvD,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAyED,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { typescriptFileProvider } from '@baseplate-dev/core-generators';
2
- import { authContextImportsProvider, authRolesImportsProvider, configServiceImportsProvider, userSessionTypesImportsProvider, } from '@baseplate-dev/fastify-generators';
2
+ import { authContextImportsProvider, authRolesImportsProvider, configServiceImportsProvider, pothosImportsProvider, prismaImportsProvider, userSessionTypesImportsProvider, } from '@baseplate-dev/fastify-generators';
3
3
  import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
4
4
  import { AUTH0_AUTH0_MODULE_PATHS } from './template-paths.js';
5
5
  import { AUTH0_AUTH0_MODULE_TEMPLATES } from './typed-templates.js';
@@ -10,11 +10,13 @@ const auth0Auth0ModuleRenderersTask = createGeneratorTask({
10
10
  authRolesImports: authRolesImportsProvider,
11
11
  configServiceImports: configServiceImportsProvider,
12
12
  paths: AUTH0_AUTH0_MODULE_PATHS.provider,
13
+ pothosImports: pothosImportsProvider,
14
+ prismaImports: prismaImportsProvider,
13
15
  typescriptFile: typescriptFileProvider,
14
16
  userSessionTypesImports: userSessionTypesImportsProvider,
15
17
  },
16
18
  exports: { auth0Auth0ModuleRenderers: auth0Auth0ModuleRenderers.export() },
17
- run({ authContextImports, authRolesImports, configServiceImports, paths, typescriptFile, userSessionTypesImports, }) {
19
+ run({ authContextImports, authRolesImports, configServiceImports, paths, pothosImports, prismaImports, typescriptFile, userSessionTypesImports, }) {
18
20
  return {
19
21
  providers: {
20
22
  auth0Auth0ModuleRenderers: {
@@ -28,6 +30,17 @@ const auth0Auth0ModuleRenderersTask = createGeneratorTask({
28
30
  ...options,
29
31
  }),
30
32
  },
33
+ userSessionQueries: {
34
+ render: (options) => typescriptFile.renderTemplateFile({
35
+ template: AUTH0_AUTH0_MODULE_TEMPLATES.userSessionQueries,
36
+ destination: paths.userSessionQueries,
37
+ importMapProviders: {
38
+ pothosImports,
39
+ prismaImports,
40
+ },
41
+ ...options,
42
+ }),
43
+ },
31
44
  userSessionService: {
32
45
  render: (options) => typescriptFile.renderTemplateFile({
33
46
  template: AUTH0_AUTH0_MODULE_TEMPLATES.userSessionService,
@@ -1 +1 @@
1
- {"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/template-renderers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAyBpE,MAAM,yBAAyB,GAAG,kBAAkB,CAClD,8BAA8B,CAC/B,CAAC;AAEF,MAAM,6BAA6B,GAAG,mBAAmB,CAAC;IACxD,YAAY,EAAE;QACZ,kBAAkB,EAAE,0BAA0B;QAC9C,gBAAgB,EAAE,wBAAwB;QAC1C,oBAAoB,EAAE,4BAA4B;QAClD,KAAK,EAAE,wBAAwB,CAAC,QAAQ;QACxC,cAAc,EAAE,sBAAsB;QACtC,uBAAuB,EAAE,+BAA+B;KACzD;IACD,OAAO,EAAE,EAAE,yBAAyB,EAAE,yBAAyB,CAAC,MAAM,EAAE,EAAE;IAC1E,GAAG,CAAC,EACF,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,EACL,cAAc,EACd,uBAAuB,GACxB;QACC,OAAO;YACL,SAAS,EAAE;gBACT,yBAAyB,EAAE;oBACzB,UAAU,EAAE;wBACV,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,kBAAkB,CAAC;4BAChC,QAAQ,EAAE,4BAA4B,CAAC,UAAU;4BACjD,WAAW,EAAE,KAAK,CAAC,UAAU;4BAC7B,kBAAkB,EAAE;gCAClB,oBAAoB;6BACrB;4BACD,GAAG,OAAO;yBACX,CAAC;qBACL;oBACD,kBAAkB,EAAE;wBAClB,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,kBAAkB,CAAC;4BAChC,QAAQ,EAAE,4BAA4B,CAAC,kBAAkB;4BACzD,WAAW,EAAE,KAAK,CAAC,kBAAkB;4BACrC,kBAAkB,EAAE;gCAClB,kBAAkB;gCAClB,gBAAgB;gCAChB,uBAAuB;6BACxB;4BACD,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,QAAQ,EAAE,yBAAyB;IACnC,IAAI,EAAE,6BAA6B;CACpC,CAAC"}
1
+ {"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/template-renderers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,qBAAqB,EACrB,qBAAqB,EACrB,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAmCpE,MAAM,yBAAyB,GAAG,kBAAkB,CAClD,8BAA8B,CAC/B,CAAC;AAEF,MAAM,6BAA6B,GAAG,mBAAmB,CAAC;IACxD,YAAY,EAAE;QACZ,kBAAkB,EAAE,0BAA0B;QAC9C,gBAAgB,EAAE,wBAAwB;QAC1C,oBAAoB,EAAE,4BAA4B;QAClD,KAAK,EAAE,wBAAwB,CAAC,QAAQ;QACxC,aAAa,EAAE,qBAAqB;QACpC,aAAa,EAAE,qBAAqB;QACpC,cAAc,EAAE,sBAAsB;QACtC,uBAAuB,EAAE,+BAA+B;KACzD;IACD,OAAO,EAAE,EAAE,yBAAyB,EAAE,yBAAyB,CAAC,MAAM,EAAE,EAAE;IAC1E,GAAG,CAAC,EACF,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,EACL,aAAa,EACb,aAAa,EACb,cAAc,EACd,uBAAuB,GACxB;QACC,OAAO;YACL,SAAS,EAAE;gBACT,yBAAyB,EAAE;oBACzB,UAAU,EAAE;wBACV,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,kBAAkB,CAAC;4BAChC,QAAQ,EAAE,4BAA4B,CAAC,UAAU;4BACjD,WAAW,EAAE,KAAK,CAAC,UAAU;4BAC7B,kBAAkB,EAAE;gCAClB,oBAAoB;6BACrB;4BACD,GAAG,OAAO;yBACX,CAAC;qBACL;oBACD,kBAAkB,EAAE;wBAClB,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,kBAAkB,CAAC;4BAChC,QAAQ,EAAE,4BAA4B,CAAC,kBAAkB;4BACzD,WAAW,EAAE,KAAK,CAAC,kBAAkB;4BACrC,kBAAkB,EAAE;gCAClB,aAAa;gCACb,aAAa;6BACd;4BACD,GAAG,OAAO;yBACX,CAAC;qBACL;oBACD,kBAAkB,EAAE;wBAClB,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,kBAAkB,CAAC;4BAChC,QAAQ,EAAE,4BAA4B,CAAC,kBAAkB;4BACzD,WAAW,EAAE,KAAK,CAAC,kBAAkB;4BACrC,kBAAkB,EAAE;gCAClB,kBAAkB;gCAClB,gBAAgB;gCAChB,uBAAuB;6BACxB;4BACD,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,QAAQ,EAAE,yBAAyB;IACnC,IAAI,EAAE,6BAA6B;CACpC,CAAC"}
@@ -4,6 +4,16 @@ export declare const AUTH0_AUTH0_MODULE_TEMPLATES: {
4
4
  config: {};
5
5
  }>>;
6
6
  }, Record<never, Record<never, never>>>;
7
+ userSessionQueries: import("@baseplate-dev/core-generators").TsTemplateFile<{
8
+ TPL_USER_OBJECT_TYPE: {};
9
+ }, {
10
+ pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
11
+ builder: {};
12
+ }>>;
13
+ prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
14
+ prisma: {};
15
+ }>>;
16
+ }, Record<never, Record<never, never>>>;
7
17
  userSessionService: import("@baseplate-dev/core-generators").TsTemplateFile<{
8
18
  TPL_USER_MODEL: {};
9
19
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/typed-templates.ts"],"names":[],"mappings":"AAwCA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAqC,CAAC"}
1
+ {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/typed-templates.ts"],"names":[],"mappings":"AA0DA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIxC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { createTsTemplateFile } from '@baseplate-dev/core-generators';
2
- import { authContextImportsProvider, authRolesImportsProvider, configServiceImportsProvider, userSessionTypesImportsProvider, } from '@baseplate-dev/fastify-generators';
2
+ import { authContextImportsProvider, authRolesImportsProvider, configServiceImportsProvider, pothosImportsProvider, prismaImportsProvider, userSessionTypesImportsProvider, } from '@baseplate-dev/fastify-generators';
3
3
  import path from 'node:path';
4
4
  const management = createTsTemplateFile({
5
5
  fileOptions: { kind: 'singleton' },
@@ -10,6 +10,18 @@ const management = createTsTemplateFile({
10
10
  },
11
11
  variables: {},
12
12
  });
13
+ const userSessionQueries = createTsTemplateFile({
14
+ fileOptions: { kind: 'singleton' },
15
+ importMapProviders: {
16
+ pothosImports: pothosImportsProvider,
17
+ prismaImports: prismaImportsProvider,
18
+ },
19
+ name: 'user-session-queries',
20
+ source: {
21
+ path: path.join(import.meta.dirname, '../templates/module/schema/user-session.queries.ts'),
22
+ },
23
+ variables: { TPL_USER_OBJECT_TYPE: {} },
24
+ });
13
25
  const userSessionService = createTsTemplateFile({
14
26
  fileOptions: { kind: 'singleton' },
15
27
  importMapProviders: {
@@ -24,5 +36,9 @@ const userSessionService = createTsTemplateFile({
24
36
  },
25
37
  variables: { TPL_USER_MODEL: {} },
26
38
  });
27
- export const AUTH0_AUTH0_MODULE_TEMPLATES = { management, userSessionService };
39
+ export const AUTH0_AUTH0_MODULE_TEMPLATES = {
40
+ management,
41
+ userSessionQueries,
42
+ userSessionService,
43
+ };
28
44
  //# sourceMappingURL=typed-templates.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,UAAU,GAAG,oBAAoB,CAAC;IACtC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE,EAAE,oBAAoB,EAAE,4BAA4B,EAAE;IAC1E,IAAI,EAAE,YAAY;IAClB,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,4CAA4C,CAC7C;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;IAC9C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE;QAClB,kBAAkB,EAAE,0BAA0B;QAC9C,gBAAgB,EAAE,wBAAwB;QAC1C,uBAAuB,EAAE,+BAA+B;KACzD;IACD,IAAI,EAAE,sBAAsB;IAC5B,cAAc,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE;IAC1C,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,sDAAsD,CACvD;KACF;IACD,SAAS,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,UAAU,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,qBAAqB,EACrB,qBAAqB,EACrB,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,UAAU,GAAG,oBAAoB,CAAC;IACtC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE,EAAE,oBAAoB,EAAE,4BAA4B,EAAE;IAC1E,IAAI,EAAE,YAAY;IAClB,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,4CAA4C,CAC7C;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;IAC9C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE;QAClB,aAAa,EAAE,qBAAqB;QACpC,aAAa,EAAE,qBAAqB;KACrC;IACD,IAAI,EAAE,sBAAsB;IAC5B,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,oDAAoD,CACrD;KACF;IACD,SAAS,EAAE,EAAE,oBAAoB,EAAE,EAAE,EAAE;CACxC,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;IAC9C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE;QAClB,kBAAkB,EAAE,0BAA0B;QAC9C,gBAAgB,EAAE,wBAAwB;QAC1C,uBAAuB,EAAE,+BAA+B;KACzD;IACD,IAAI,EAAE,sBAAsB;IAC5B,cAAc,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE;IAC1C,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,sDAAsD,CACvD;KACF;IACD,SAAS,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,UAAU;IACV,kBAAkB;IAClB,kBAAkB;CACnB,CAAC"}
@@ -0,0 +1,22 @@
1
+ // @ts-nocheck
2
+
3
+ import { builder } from '%pothosImports';
4
+ import { prisma } from '%prismaImports';
5
+
6
+ builder.queryField('viewer', (t) =>
7
+ t.prismaField({
8
+ type: TPL_USER_OBJECT_TYPE,
9
+ nullable: true,
10
+ description: 'The currently authenticated user',
11
+ authorize: ['public'],
12
+ resolve: async (query, root, args, { auth }) => {
13
+ if (!auth.session || auth.session.type !== 'user') {
14
+ return null;
15
+ }
16
+ return prisma.user.findUnique({
17
+ where: { id: auth.session.userId },
18
+ ...query,
19
+ });
20
+ },
21
+ }),
22
+ );
@@ -1,5 +1,4 @@
1
1
  export declare const auth0HooksGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<{
2
- userQueryName?: string | undefined;
3
2
  authRoles?: string[] | undefined;
4
3
  }, {
5
4
  paths: import("@baseplate-dev/sync").GeneratorTask<{
@@ -12,7 +11,6 @@ export declare const auth0HooksGenerator: import("@baseplate-dev/sync").Generato
12
11
  SessionData: {
13
12
  isTypeOnly: true;
14
13
  };
15
- useCurrentUser: {};
16
14
  useLogOut: {};
17
15
  useRequiredUserId: {};
18
16
  useSession: {};
@@ -26,9 +24,6 @@ export declare const auth0HooksGenerator: import("@baseplate-dev/sync").Generato
26
24
  renderers: import("@baseplate-dev/sync").GeneratorTask<{
27
25
  auth0Auth0HooksRenderers: import("@baseplate-dev/sync").ProviderExport<import("./generated/template-renderers.js").Auth0Auth0HooksRenderers>;
28
26
  }, {
29
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
30
- '*': {};
31
- }>>;
32
27
  paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").Auth0Auth0HooksPaths>;
33
28
  reactErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
34
29
  formatError: {};
@@ -1 +1 @@
1
- {"version":3,"file":"auth0-hooks.generator.d.ts","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/auth0-hooks/auth0-hooks.generator.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0C9B,CAAC"}
1
+ {"version":3,"file":"auth0-hooks.generator.d.ts","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/auth0-hooks/auth0-hooks.generator.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+B9B,CAAC"}
@@ -4,14 +4,13 @@ import { quot } from '@baseplate-dev/utils';
4
4
  import { z } from 'zod';
5
5
  import { AUTH0_AUTH0_HOOKS_GENERATED } from './generated/index.js';
6
6
  const descriptorSchema = z.object({
7
- userQueryName: z.string().default('user'),
8
7
  authRoles: z.array(z.string()).default([]),
9
8
  });
10
9
  export const auth0HooksGenerator = createGenerator({
11
10
  name: 'auth0/auth0-hooks',
12
11
  generatorFileUrl: import.meta.url,
13
12
  descriptorSchema,
14
- buildTasks: ({ userQueryName, authRoles }) => ({
13
+ buildTasks: ({ authRoles }) => ({
15
14
  paths: AUTH0_AUTH0_HOOKS_GENERATED.paths.task,
16
15
  imports: AUTH0_AUTH0_HOOKS_GENERATED.imports.task,
17
16
  renderers: AUTH0_AUTH0_HOOKS_GENERATED.renderers.task,
@@ -24,19 +23,11 @@ export const auth0HooksGenerator = createGenerator({
24
23
  build: async (builder) => {
25
24
  await builder.apply(renderers.hooksGroup.render({
26
25
  variables: {
27
- useCurrentUser: {
28
- TPL_USER: userQueryName,
29
- },
30
26
  useSession: {
31
27
  TPL_AUTH_ROLES: TsCodeUtils.mergeFragmentsAsArrayPresorted([...authRoles].sort().map((role) => quot(role))),
32
28
  },
33
29
  },
34
30
  }));
35
- await builder.apply(renderers.useCurrentUserGql.render({
36
- variables: {
37
- TPL_USER_QUERY_NAME: userQueryName,
38
- },
39
- }));
40
31
  },
41
32
  };
42
33
  },
@@ -1 +1 @@
1
- {"version":3,"file":"auth0-hooks.generator.js","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/auth0-hooks/auth0-hooks.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAEnE,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAC3C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC;IACjD,IAAI,EAAE,mBAAmB;IACzB,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,CAAC,EAAE,aAAa,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;QAC7C,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC,IAAI;QAC7C,OAAO,EAAE,2BAA2B,CAAC,OAAO,CAAC,IAAI;QACjD,SAAS,EAAE,2BAA2B,CAAC,SAAS,CAAC,IAAI;QACrD,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,SAAS,EAAE,2BAA2B,CAAC,SAAS,CAAC,QAAQ;aAC1D;YACD,GAAG,CAAC,EAAE,SAAS,EAAE;gBACf,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CACjB,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC;4BAC1B,SAAS,EAAE;gCACT,cAAc,EAAE;oCACd,QAAQ,EAAE,aAAa;iCACxB;gCACD,UAAU,EAAE;oCACV,cAAc,EAAE,WAAW,CAAC,8BAA8B,CACxD,CAAC,GAAG,SAAS,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAChD;iCACF;6BACF;yBACF,CAAC,CACH,CAAC;wBAEF,MAAM,OAAO,CAAC,KAAK,CACjB,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC;4BACjC,SAAS,EAAE;gCACT,mBAAmB,EAAE,aAAa;6BACnC;yBACF,CAAC,CACH,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"auth0-hooks.generator.js","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/auth0-hooks/auth0-hooks.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAEnE,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAC3C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC;IACjD,IAAI,EAAE,mBAAmB;IACzB,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;QAC9B,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC,IAAI;QAC7C,OAAO,EAAE,2BAA2B,CAAC,OAAO,CAAC,IAAI;QACjD,SAAS,EAAE,2BAA2B,CAAC,SAAS,CAAC,IAAI;QACrD,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,SAAS,EAAE,2BAA2B,CAAC,SAAS,CAAC,QAAQ;aAC1D;YACD,GAAG,CAAC,EAAE,SAAS,EAAE;gBACf,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CACjB,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC;4BAC1B,SAAS,EAAE;gCACT,UAAU,EAAE;oCACV,cAAc,EAAE,WAAW,CAAC,8BAA8B,CACxD,CAAC,GAAG,SAAS,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAChD;iCACF;6BACF;yBACF,CAAC,CACH,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -5,7 +5,6 @@ export declare const AUTH0_AUTH0_HOOKS_GENERATED: {
5
5
  SessionData: {
6
6
  isTypeOnly: true;
7
7
  };
8
- useCurrentUser: {};
9
8
  useLogOut: {};
10
9
  useRequiredUserId: {};
11
10
  useSession: {};
@@ -30,9 +29,6 @@ export declare const AUTH0_AUTH0_HOOKS_GENERATED: {
30
29
  task: import("@baseplate-dev/sync").GeneratorTask<{
31
30
  auth0Auth0HooksRenderers: import("@baseplate-dev/sync").ProviderExport<import("./template-renderers.js").Auth0Auth0HooksRenderers>;
32
31
  }, {
33
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
34
- '*': {};
35
- }>>;
36
32
  paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").Auth0Auth0HooksPaths>;
37
33
  reactErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
38
34
  formatError: {};
@@ -44,15 +40,6 @@ export declare const AUTH0_AUTH0_HOOKS_GENERATED: {
44
40
  };
45
41
  templates: {
46
42
  hooksGroup: {
47
- useCurrentUser: import("@baseplate-dev/core-generators").TsTemplateFile<{
48
- TPL_USER: {};
49
- }, {
50
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
51
- '*': {};
52
- }>>;
53
- }, {
54
- useSession: {};
55
- }>;
56
43
  useLogOut: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
57
44
  reactErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
58
45
  formatError: {};
@@ -67,11 +54,6 @@ export declare const AUTH0_AUTH0_HOOKS_GENERATED: {
67
54
  TPL_AUTH_ROLES: {};
68
55
  }, {}, Record<never, Record<never, never>>>;
69
56
  };
70
- useCurrentUserGql: import("@baseplate-dev/core-generators").TextTemplateFile<{
71
- TPL_USER_QUERY_NAME: {
72
- description: string;
73
- };
74
- }>;
75
57
  };
76
58
  };
77
59
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-hooks/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-hooks/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvC,CAAC"}
@@ -1,6 +1,4 @@
1
1
  export interface Auth0Auth0HooksPaths {
2
- useCurrentUser: string;
3
- useCurrentUserGql: string;
4
2
  useLogOut: string;
5
3
  useRequiredUserId: string;
6
4
  useSession: string;
@@ -1 +1 @@
1
- {"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-hooks/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,oBAAoB;IACnC,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,uBAAuB;;;;;;;CAGnC,CAAC"}
1
+ {"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-hooks/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AAwBD,eAAO,MAAM,uBAAuB;;;;;;;CAGnC,CAAC"}
@@ -9,8 +9,6 @@ const auth0Auth0HooksPathsTask = createGeneratorTask({
9
9
  return {
10
10
  providers: {
11
11
  auth0Auth0HooksPaths: {
12
- useCurrentUser: `${srcRoot}/hooks/use-current-user.ts`,
13
- useCurrentUserGql: `${srcRoot}/hooks/use-current-user.gql`,
14
12
  useLogOut: `${srcRoot}/hooks/use-log-out.ts`,
15
13
  useRequiredUserId: `${srcRoot}/hooks/use-required-user-id.ts`,
16
14
  useSession: `${srcRoot}/hooks/use-session.ts`,
@@ -1 +1 @@
1
- {"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-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,oBAAoB,GAAG,kBAAkB,CAC7C,yBAAyB,CAC1B,CAAC;AAEF,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;IACnD,YAAY,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE;IAClD,OAAO,EAAE,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,MAAM,EAAE,EAAE;IAChE,GAAG,CAAC,EAAE,WAAW,EAAE;QACjB,MAAM,OAAO,GAAG,WAAW,CAAC,iBAAiB,EAAE,CAAC;QAEhD,OAAO;YACL,SAAS,EAAE;gBACT,oBAAoB,EAAE;oBACpB,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,uBAAuB,GAAG;IACrC,QAAQ,EAAE,oBAAoB;IAC9B,IAAI,EAAE,wBAAwB;CAC/B,CAAC"}
1
+ {"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-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;AAQ9E,MAAM,oBAAoB,GAAG,kBAAkB,CAC7C,yBAAyB,CAC1B,CAAC;AAEF,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;IACnD,YAAY,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE;IAClD,OAAO,EAAE,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,MAAM,EAAE,EAAE;IAChE,GAAG,CAAC,EAAE,WAAW,EAAE;QACjB,MAAM,OAAO,GAAG,WAAW,CAAC,iBAAiB,EAAE,CAAC;QAEhD,OAAO;YACL,SAAS,EAAE;gBACT,oBAAoB,EAAE;oBACpB,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,uBAAuB,GAAG;IACrC,QAAQ,EAAE,oBAAoB;IAC9B,IAAI,EAAE,wBAAwB;CAC/B,CAAC"}
@@ -1,22 +1,16 @@
1
- import type { RenderTextTemplateFileActionInput, RenderTsTemplateGroupActionInput } from '@baseplate-dev/core-generators';
1
+ import type { RenderTsTemplateGroupActionInput } from '@baseplate-dev/core-generators';
2
2
  import type { BuilderAction } from '@baseplate-dev/sync';
3
3
  import { AUTH0_AUTH0_HOOKS_TEMPLATES } from './typed-templates.js';
4
4
  export interface Auth0Auth0HooksRenderers {
5
5
  hooksGroup: {
6
6
  render: (options: Omit<RenderTsTemplateGroupActionInput<typeof AUTH0_AUTH0_HOOKS_TEMPLATES.hooksGroup>, 'importMapProviders' | 'group' | 'paths' | 'generatorPaths'>) => BuilderAction;
7
7
  };
8
- useCurrentUserGql: {
9
- render: (options: Omit<RenderTextTemplateFileActionInput<typeof AUTH0_AUTH0_HOOKS_TEMPLATES.useCurrentUserGql>, 'destination' | 'template'>) => BuilderAction;
10
- };
11
8
  }
12
9
  export declare const AUTH0_AUTH0_HOOKS_RENDERERS: {
13
10
  provider: import("@baseplate-dev/sync").ProviderType<Auth0Auth0HooksRenderers>;
14
11
  task: import("@baseplate-dev/sync").GeneratorTask<{
15
12
  auth0Auth0HooksRenderers: import("@baseplate-dev/sync").ProviderExport<Auth0Auth0HooksRenderers>;
16
13
  }, {
17
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
18
- '*': {};
19
- }>>;
20
14
  paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").Auth0Auth0HooksPaths>;
21
15
  reactErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
22
16
  formatError: {};
@@ -1 +1 @@
1
- {"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-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;AAazD,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAEnE,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE;QACV,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,2BAA2B,CAAC,UAAU,CAC9C,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;IACF,iBAAiB,EAAE;QACjB,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,iCAAiC,CAC/B,OAAO,2BAA2B,CAAC,iBAAiB,CACrD,EACD,aAAa,GAAG,UAAU,CAC3B,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AA6CD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;CAGvC,CAAC"}
1
+ {"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-hooks/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOzD,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAEnE,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE;QACV,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,2BAA2B,CAAC,UAAU,CAC9C,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAmCD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;CAGvC,CAAC"}
@@ -1,18 +1,17 @@
1
- import { renderTextTemplateFileAction, typescriptFileProvider, } from '@baseplate-dev/core-generators';
2
- import { generatedGraphqlImportsProvider, reactErrorImportsProvider, } from '@baseplate-dev/react-generators';
1
+ import { typescriptFileProvider } from '@baseplate-dev/core-generators';
2
+ import { reactErrorImportsProvider } from '@baseplate-dev/react-generators';
3
3
  import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
4
4
  import { AUTH0_AUTH0_HOOKS_PATHS } from './template-paths.js';
5
5
  import { AUTH0_AUTH0_HOOKS_TEMPLATES } from './typed-templates.js';
6
6
  const auth0Auth0HooksRenderers = createProviderType('auth0-auth0-hooks-renderers');
7
7
  const auth0Auth0HooksRenderersTask = createGeneratorTask({
8
8
  dependencies: {
9
- generatedGraphqlImports: generatedGraphqlImportsProvider,
10
9
  paths: AUTH0_AUTH0_HOOKS_PATHS.provider,
11
10
  reactErrorImports: reactErrorImportsProvider,
12
11
  typescriptFile: typescriptFileProvider,
13
12
  },
14
13
  exports: { auth0Auth0HooksRenderers: auth0Auth0HooksRenderers.export() },
15
- run({ generatedGraphqlImports, paths, reactErrorImports, typescriptFile }) {
14
+ run({ paths, reactErrorImports, typescriptFile }) {
16
15
  return {
17
16
  providers: {
18
17
  auth0Auth0HooksRenderers: {
@@ -21,20 +20,12 @@ const auth0Auth0HooksRenderersTask = createGeneratorTask({
21
20
  group: AUTH0_AUTH0_HOOKS_TEMPLATES.hooksGroup,
22
21
  paths,
23
22
  importMapProviders: {
24
- generatedGraphqlImports,
25
23
  reactErrorImports,
26
24
  },
27
25
  generatorPaths: paths,
28
26
  ...options,
29
27
  }),
30
28
  },
31
- useCurrentUserGql: {
32
- render: (options) => renderTextTemplateFileAction({
33
- template: AUTH0_AUTH0_HOOKS_TEMPLATES.useCurrentUserGql,
34
- destination: paths.useCurrentUserGql,
35
- ...options,
36
- }),
37
- },
38
29
  },
39
30
  },
40
31
  };
@@ -1 +1 @@
1
- {"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-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,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAyBnE,MAAM,wBAAwB,GAAG,kBAAkB,CACjD,6BAA6B,CAC9B,CAAC;AAEF,MAAM,4BAA4B,GAAG,mBAAmB,CAAC;IACvD,YAAY,EAAE;QACZ,uBAAuB,EAAE,+BAA+B;QACxD,KAAK,EAAE,uBAAuB,CAAC,QAAQ;QACvC,iBAAiB,EAAE,yBAAyB;QAC5C,cAAc,EAAE,sBAAsB;KACvC;IACD,OAAO,EAAE,EAAE,wBAAwB,EAAE,wBAAwB,CAAC,MAAM,EAAE,EAAE;IACxE,GAAG,CAAC,EAAE,uBAAuB,EAAE,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE;QACvE,OAAO;YACL,SAAS,EAAE;gBACT,wBAAwB,EAAE;oBACxB,UAAU,EAAE;wBACV,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,mBAAmB,CAAC;4BACjC,KAAK,EAAE,2BAA2B,CAAC,UAAU;4BAC7C,KAAK;4BACL,kBAAkB,EAAE;gCAClB,uBAAuB;gCACvB,iBAAiB;6BAClB;4BACD,cAAc,EAAE,KAAK;4BACrB,GAAG,OAAO;yBACX,CAAC;qBACL;oBACD,iBAAiB,EAAE;wBACjB,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,4BAA4B,CAAC;4BAC3B,QAAQ,EAAE,2BAA2B,CAAC,iBAAiB;4BACvD,WAAW,EAAE,KAAK,CAAC,iBAAiB;4BACpC,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,QAAQ,EAAE,wBAAwB;IAClC,IAAI,EAAE,4BAA4B;CACnC,CAAC"}
1
+ {"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-hooks/generated/template-renderers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAenE,MAAM,wBAAwB,GAAG,kBAAkB,CACjD,6BAA6B,CAC9B,CAAC;AAEF,MAAM,4BAA4B,GAAG,mBAAmB,CAAC;IACvD,YAAY,EAAE;QACZ,KAAK,EAAE,uBAAuB,CAAC,QAAQ;QACvC,iBAAiB,EAAE,yBAAyB;QAC5C,cAAc,EAAE,sBAAsB;KACvC;IACD,OAAO,EAAE,EAAE,wBAAwB,EAAE,wBAAwB,CAAC,MAAM,EAAE,EAAE;IACxE,GAAG,CAAC,EAAE,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE;QAC9C,OAAO;YACL,SAAS,EAAE;gBACT,wBAAwB,EAAE;oBACxB,UAAU,EAAE;wBACV,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,mBAAmB,CAAC;4BACjC,KAAK,EAAE,2BAA2B,CAAC,UAAU;4BAC7C,KAAK;4BACL,kBAAkB,EAAE;gCAClB,iBAAiB;6BAClB;4BACD,cAAc,EAAE,KAAK;4BACrB,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,QAAQ,EAAE,wBAAwB;IAClC,IAAI,EAAE,4BAA4B;CACnC,CAAC"}
@@ -4,7 +4,6 @@ export declare const AUTH0_AUTH0_HOOKS_IMPORTS: {
4
4
  SessionData: {
5
5
  isTypeOnly: true;
6
6
  };
7
- useCurrentUser: {};
8
7
  useLogOut: {};
9
8
  useRequiredUserId: {};
10
9
  useSession: {};
@@ -1 +1 @@
1
- {"version":3,"file":"ts-import-providers.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-hooks/generated/ts-import-providers.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;CAErC,CAAC"}
1
+ {"version":3,"file":"ts-import-providers.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-hooks/generated/ts-import-providers.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;CAErC,CAAC"}
@@ -13,7 +13,6 @@ const auth0Auth0HooksImportsTask = createGeneratorTask({
13
13
  authHooksImports: createTsImportMap(authHooksImportsSchema, {
14
14
  AuthRole: paths.useSession,
15
15
  SessionData: paths.useSession,
16
- useCurrentUser: paths.useCurrentUser,
17
16
  useLogOut: paths.useLogOut,
18
17
  useRequiredUserId: paths.useRequiredUserId,
19
18
  useSession: paths.useSession,
@@ -1 +1 @@
1
- {"version":3,"file":"ts-import-providers.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-hooks/generated/ts-import-providers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,0BAA0B,GAAG,mBAAmB,CAAC;IACrD,YAAY,EAAE;QACZ,KAAK,EAAE,uBAAuB,CAAC,QAAQ;KACxC;IACD,OAAO,EAAE,EAAE,gBAAgB,EAAE,wBAAwB,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE;IAC5E,GAAG,CAAC,EAAE,KAAK,EAAE;QACX,OAAO;YACL,SAAS,EAAE;gBACT,gBAAgB,EAAE,iBAAiB,CAAC,sBAAsB,EAAE;oBAC1D,QAAQ,EAAE,KAAK,CAAC,UAAU;oBAC1B,WAAW,EAAE,KAAK,CAAC,UAAU;oBAC7B,cAAc,EAAE,KAAK,CAAC,cAAc;oBACpC,SAAS,EAAE,KAAK,CAAC,SAAS;oBAC1B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;oBAC1C,UAAU,EAAE,KAAK,CAAC,UAAU;iBAC7B,CAAC;aACH;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,IAAI,EAAE,0BAA0B;CACjC,CAAC"}
1
+ {"version":3,"file":"ts-import-providers.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-hooks/generated/ts-import-providers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,0BAA0B,GAAG,mBAAmB,CAAC;IACrD,YAAY,EAAE;QACZ,KAAK,EAAE,uBAAuB,CAAC,QAAQ;KACxC;IACD,OAAO,EAAE,EAAE,gBAAgB,EAAE,wBAAwB,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE;IAC5E,GAAG,CAAC,EAAE,KAAK,EAAE;QACX,OAAO;YACL,SAAS,EAAE;gBACT,gBAAgB,EAAE,iBAAiB,CAAC,sBAAsB,EAAE;oBAC1D,QAAQ,EAAE,KAAK,CAAC,UAAU;oBAC1B,WAAW,EAAE,KAAK,CAAC,UAAU;oBAC7B,SAAS,EAAE,KAAK,CAAC,SAAS;oBAC1B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;oBAC1C,UAAU,EAAE,KAAK,CAAC,UAAU;iBAC7B,CAAC;aACH;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,IAAI,EAAE,0BAA0B;CACjC,CAAC"}
@@ -1,13 +1,4 @@
1
1
  export declare const hooksGroup: {
2
- useCurrentUser: import("@baseplate-dev/core-generators").TsTemplateFile<{
3
- TPL_USER: {};
4
- }, {
5
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
6
- '*': {};
7
- }>>;
8
- }, {
9
- useSession: {};
10
- }>;
11
2
  useLogOut: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
12
3
  reactErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
13
4
  formatError: {};
@@ -24,15 +15,6 @@ export declare const hooksGroup: {
24
15
  };
25
16
  export declare const AUTH0_AUTH0_HOOKS_TEMPLATES: {
26
17
  hooksGroup: {
27
- useCurrentUser: import("@baseplate-dev/core-generators").TsTemplateFile<{
28
- TPL_USER: {};
29
- }, {
30
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
31
- '*': {};
32
- }>>;
33
- }, {
34
- useSession: {};
35
- }>;
36
18
  useLogOut: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
37
19
  reactErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
38
20
  formatError: {};
@@ -47,10 +29,5 @@ export declare const AUTH0_AUTH0_HOOKS_TEMPLATES: {
47
29
  TPL_AUTH_ROLES: {};
48
30
  }, {}, Record<never, Record<never, never>>>;
49
31
  };
50
- useCurrentUserGql: import("@baseplate-dev/core-generators").TextTemplateFile<{
51
- TPL_USER_QUERY_NAME: {
52
- description: string;
53
- };
54
- }>;
55
32
  };
56
33
  //# sourceMappingURL=typed-templates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-hooks/generated/typed-templates.ts"],"names":[],"mappings":"AA8EA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;CAKtB,CAAC;AAgBF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC"}
1
+ {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-hooks/generated/typed-templates.ts"],"names":[],"mappings":"AAsDA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;CAA+C,CAAC;AAEvE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;CAAiB,CAAC"}
@@ -1,20 +1,6 @@
1
- import { createTextTemplateFile, createTsTemplateFile, } from '@baseplate-dev/core-generators';
2
- import { generatedGraphqlImportsProvider, reactErrorImportsProvider, } from '@baseplate-dev/react-generators';
1
+ import { createTsTemplateFile } from '@baseplate-dev/core-generators';
2
+ import { reactErrorImportsProvider } from '@baseplate-dev/react-generators';
3
3
  import path from 'node:path';
4
- const useCurrentUser = createTsTemplateFile({
5
- fileOptions: { kind: 'singleton' },
6
- group: 'hooks',
7
- importMapProviders: {
8
- generatedGraphqlImports: generatedGraphqlImportsProvider,
9
- },
10
- name: 'use-current-user',
11
- projectExports: { useCurrentUser: {} },
12
- referencedGeneratorTemplates: { useSession: {} },
13
- source: {
14
- path: path.join(import.meta.dirname, '../templates/src/hooks/use-current-user.ts'),
15
- },
16
- variables: { TPL_USER: {} },
17
- });
18
4
  const useLogOut = createTsTemplateFile({
19
5
  fileOptions: { kind: 'singleton' },
20
6
  group: 'hooks',
@@ -53,21 +39,6 @@ const useSession = createTsTemplateFile({
53
39
  },
54
40
  variables: { TPL_AUTH_ROLES: {} },
55
41
  });
56
- export const hooksGroup = {
57
- useCurrentUser,
58
- useLogOut,
59
- useRequiredUserId,
60
- useSession,
61
- };
62
- const useCurrentUserGql = createTextTemplateFile({
63
- fileOptions: { kind: 'singleton' },
64
- name: 'use-current-user-gql',
65
- source: {
66
- path: path.join(import.meta.dirname, '../templates/src/hooks/use-current-user.gql'),
67
- },
68
- variables: {
69
- TPL_USER_QUERY_NAME: { description: 'The name of the user query' },
70
- },
71
- });
72
- export const AUTH0_AUTH0_HOOKS_TEMPLATES = { hooksGroup, useCurrentUserGql };
42
+ export const hooksGroup = { useLogOut, useRequiredUserId, useSession };
43
+ export const AUTH0_AUTH0_HOOKS_TEMPLATES = { hooksGroup };
73
44
  //# sourceMappingURL=typed-templates.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-hooks/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,cAAc,GAAG,oBAAoB,CAAC;IAC1C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE;QAClB,uBAAuB,EAAE,+BAA+B;KACzD;IACD,IAAI,EAAE,kBAAkB;IACxB,cAAc,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE;IACtC,4BAA4B,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;IAChD,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,4CAA4C,CAC7C;KACF;IACD,SAAS,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;CAC5B,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,oBAAoB,CAAC;IACrC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE,EAAE,iBAAiB,EAAE,yBAAyB,EAAE;IACpE,IAAI,EAAE,aAAa;IACnB,cAAc,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IACjC,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,uCAAuC,CACxC;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;IAC7C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,sBAAsB;IAC5B,cAAc,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE;IACzC,4BAA4B,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;IAChD,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,gDAAgD,CACjD;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,oBAAoB,CAAC;IACtC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,aAAa;IACnB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;QAC9B,WAAW,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;QACjC,UAAU,EAAE,EAAE;KACf;IACD,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,uCAAuC,CACxC;KACF;IACD,SAAS,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,cAAc;IACd,SAAS;IACT,iBAAiB;IACjB,UAAU;CACX,CAAC;AAEF,MAAM,iBAAiB,GAAG,sBAAsB,CAAC;IAC/C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,IAAI,EAAE,sBAAsB;IAC5B,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,6CAA6C,CAC9C;KACF;IACD,SAAS,EAAE;QACT,mBAAmB,EAAE,EAAE,WAAW,EAAE,4BAA4B,EAAE;KACnE;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/auth0-hooks/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,SAAS,GAAG,oBAAoB,CAAC;IACrC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE,EAAE,iBAAiB,EAAE,yBAAyB,EAAE;IACpE,IAAI,EAAE,aAAa;IACnB,cAAc,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IACjC,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,uCAAuC,CACxC;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;IAC7C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,sBAAsB;IAC5B,cAAc,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE;IACzC,4BAA4B,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;IAChD,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,gDAAgD,CACjD;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,oBAAoB,CAAC;IACtC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,aAAa;IACnB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;QAC9B,WAAW,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;QACjC,UAAU,EAAE,EAAE;KACf;IACD,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,uCAAuC,CACxC;KACF;IACD,SAAS,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC;AAEvE,MAAM,CAAC,MAAM,2BAA2B,GAAG,EAAE,UAAU,EAAE,CAAC"}
@@ -1,4 +1,5 @@
1
- import type { PluginPlatformModule } from '@baseplate-dev/project-builder-lib';
2
- declare const _default: PluginPlatformModule;
1
+ declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
2
+ [x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
3
+ }>;
3
4
  export default _default;
4
5
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/local-auth/admin/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;wBA+CzE,oBAAoB;AAjC1B,wBAiC2B"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/local-auth/admin/common.ts"],"names":[],"mappings":";;;AAYA,wBA+BG"}
@@ -1,30 +1,29 @@
1
- import { adminCrudActionSpec, adminCrudColumnSpec, createAdminCrudActionType, createAdminCrudColumnType, createPlatformPluginExport, } from '@baseplate-dev/project-builder-lib';
1
+ import { adminCrudActionSpec, adminCrudColumnSpec, createAdminCrudActionType, createAdminCrudColumnType, createPluginModule, } from '@baseplate-dev/project-builder-lib';
2
2
  import { createAdminCrudManageRolesActionSchema } from './schema/manage-role-action.js';
3
3
  import { createAdminCrudResetPasswordActionSchema } from './schema/reset-password-action.js';
4
4
  import { createAdminCrudRolesColumnSchema } from './schema/roles-column.js';
5
- export default createPlatformPluginExport({
5
+ export default createPluginModule({
6
+ name: 'common',
6
7
  dependencies: {
7
8
  adminCrudAction: adminCrudActionSpec,
8
9
  adminCrudColumn: adminCrudColumnSpec,
9
10
  },
10
- exports: {},
11
11
  initialize: ({ adminCrudAction, adminCrudColumn }) => {
12
12
  // Register the manage-roles action type
13
- adminCrudAction.registerAdminCrudAction(createAdminCrudActionType({
13
+ adminCrudAction.actions.add(createAdminCrudActionType({
14
14
  name: 'manage-roles',
15
15
  createSchema: createAdminCrudManageRolesActionSchema,
16
16
  }));
17
17
  // Register the reset-password action type
18
- adminCrudAction.registerAdminCrudAction(createAdminCrudActionType({
18
+ adminCrudAction.actions.add(createAdminCrudActionType({
19
19
  name: 'reset-password',
20
20
  createSchema: createAdminCrudResetPasswordActionSchema,
21
21
  }));
22
22
  // Register the roles column type
23
- adminCrudColumn.registerAdminCrudColumn(createAdminCrudColumnType({
23
+ adminCrudColumn.columns.add(createAdminCrudColumnType({
24
24
  name: 'roles',
25
25
  createSchema: createAdminCrudRolesColumnSchema,
26
26
  }));
27
- return {};
28
27
  },
29
28
  });
30
29
  //# sourceMappingURL=common.js.map