@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.
- package/dist/auth/core/common.d.ts +2 -5
- package/dist/auth/core/common.d.ts.map +1 -1
- package/dist/auth/core/common.js +14 -14
- package/dist/auth/core/common.js.map +1 -1
- package/dist/auth/core/node.d.ts +3 -3
- package/dist/auth/core/node.d.ts.map +1 -1
- package/dist/auth/core/node.js +5 -8
- package/dist/auth/core/node.js.map +1 -1
- package/dist/auth/core/web.d.ts +3 -3
- package/dist/auth/core/web.d.ts.map +1 -1
- package/dist/auth/core/web.js +4 -5
- package/dist/auth/core/web.js.map +1 -1
- package/dist/auth0/core/common.d.ts +3 -5
- package/dist/auth0/core/common.d.ts.map +1 -1
- package/dist/auth0/core/common.js +11 -14
- package/dist/auth0/core/common.js.map +1 -1
- package/dist/auth0/core/node.d.ts +3 -3
- package/dist/auth0/core/node.d.ts.map +1 -1
- package/dist/auth0/core/node.js +5 -8
- package/dist/auth0/core/node.js.map +1 -1
- package/dist/auth0/core/web.d.ts +3 -3
- package/dist/auth0/core/web.d.ts.map +1 -1
- package/dist/auth0/core/web.js +4 -5
- package/dist/auth0/core/web.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts +39 -25
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js +18 -24
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +16 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts +1 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js +1 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts +9 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js +15 -2
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts +10 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js +18 -2
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/templates/module/schema/user-session.queries.ts +22 -0
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +0 -5
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +1 -10
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +0 -18
- package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts +0 -2
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js +0 -2
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts +1 -7
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js +3 -12
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +0 -23
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +4 -33
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/admin/common.d.ts +3 -2
- package/dist/local-auth/admin/common.d.ts.map +1 -1
- package/dist/local-auth/admin/common.js +6 -7
- package/dist/local-auth/admin/common.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +25 -4
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +16 -13
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +24 -7
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js +0 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +13 -6
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js +5 -12
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +12 -5
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js +3 -12
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts +3 -2
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +26 -7
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +34 -12
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +25 -4
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +35 -25
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +24 -7
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js +0 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +13 -6
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js +5 -12
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +24 -7
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js +3 -12
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts +3 -2
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +22 -6
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +30 -11
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js +7 -11
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +1 -1
- package/dist/local-auth/admin/node.d.ts +3 -6
- package/dist/local-auth/admin/node.d.ts.map +1 -1
- package/dist/local-auth/admin/node.js +15 -18
- package/dist/local-auth/admin/node.js.map +1 -1
- package/dist/local-auth/admin/web.d.ts +3 -4
- package/dist/local-auth/admin/web.d.ts.map +1 -1
- package/dist/local-auth/admin/web.js +22 -21
- package/dist/local-auth/admin/web.js.map +1 -1
- package/dist/local-auth/core/common.d.ts +3 -5
- package/dist/local-auth/core/common.d.ts.map +1 -1
- package/dist/local-auth/core/common.js +10 -13
- package/dist/local-auth/core/common.js.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +12 -3
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js +0 -1
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +36 -18
- package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +0 -3
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +0 -3
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +13 -6
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +5 -12
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +0 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +48 -30
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +6 -49
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +9 -2
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +10 -2
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +2 -2
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +2 -2
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +3 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +6 -1
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +12 -2
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +5 -2
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +16 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +19 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +12 -3
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +1 -8
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +36 -7
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +0 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +13 -6
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +5 -12
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +48 -9
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +5 -13
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +11 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +12 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +11 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +12 -2
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +24 -7
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts +0 -1
- package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/template-paths.js +0 -1
- package/dist/local-auth/core/generators/react-session/generated/template-paths.js.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +13 -7
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.js +5 -12
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.js.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +24 -7
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +4 -15
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +12 -3
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.js +0 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.js.map +1 -1
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +10 -2
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +1 -1
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +11 -2
- package/dist/local-auth/core/node.d.ts +3 -3
- package/dist/local-auth/core/node.d.ts.map +1 -1
- package/dist/local-auth/core/node.js +5 -8
- package/dist/local-auth/core/node.js.map +1 -1
- package/dist/local-auth/core/web.d.ts +3 -3
- package/dist/local-auth/core/web.d.ts.map +1 -1
- package/dist/local-auth/core/web.js +4 -5
- package/dist/local-auth/core/web.js.map +1 -1
- package/dist/placeholder-auth/core/common.d.ts +2 -5
- package/dist/placeholder-auth/core/common.d.ts.map +1 -1
- package/dist/placeholder-auth/core/common.js +10 -13
- package/dist/placeholder-auth/core/common.js.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +0 -12
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +0 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +0 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts +1 -7
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js +2 -14
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +0 -15
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +2 -31
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +0 -5
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js +1 -7
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js.map +1 -1
- package/dist/placeholder-auth/core/node.d.ts +3 -3
- package/dist/placeholder-auth/core/node.d.ts.map +1 -1
- package/dist/placeholder-auth/core/node.js +5 -8
- package/dist/placeholder-auth/core/node.js.map +1 -1
- package/dist/placeholder-auth/core/web.d.ts +3 -3
- package/dist/placeholder-auth/core/web.d.ts.map +1 -1
- package/dist/placeholder-auth/core/web.js +4 -5
- package/dist/placeholder-auth/core/web.js.map +1 -1
- package/dist/web/assets/__federation_expose_auth0CoreCommon-DLSGXjCI.js +40 -0
- package/dist/web/assets/__federation_expose_auth0CoreCommon-DLSGXjCI.js.map +1 -0
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-B9jV1EyN.js → __federation_expose_auth0CoreWeb-C7FfhlmF.js} +9 -10
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-B9jV1EyN.js.map → __federation_expose_auth0CoreWeb-C7FfhlmF.js.map} +1 -1
- package/dist/web/assets/__federation_expose_authCoreCommon-BF58isGa.js +29 -0
- package/dist/web/assets/__federation_expose_authCoreCommon-BF58isGa.js.map +1 -0
- package/dist/web/assets/{__federation_expose_authCoreWeb-CTQI1rXb.js → __federation_expose_authCoreWeb-DMq9M88g.js} +10 -11
- package/dist/web/assets/{__federation_expose_authCoreWeb-CTQI1rXb.js.map → __federation_expose_authCoreWeb-DMq9M88g.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-C0_ovnDb.js → __federation_expose_local-authAdminCommon-sQw4q5YX.js} +8 -9
- package/dist/web/assets/__federation_expose_local-authAdminCommon-sQw4q5YX.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authAdminWeb-9FbO89NR.js +41 -0
- package/dist/web/assets/__federation_expose_local-authAdminWeb-9FbO89NR.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-CpUK09_4.js +21 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-CpUK09_4.js.map +1 -0
- package/dist/web/assets/{__federation_expose_local-authCoreWeb-Dz4oU0uP.js → __federation_expose_local-authCoreWeb-Czp0GaY1.js} +9 -10
- package/dist/web/assets/{__federation_expose_local-authCoreWeb-Dz4oU0uP.js.map → __federation_expose_local-authCoreWeb-Czp0GaY1.js.map} +1 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CFDDdOMo.js +23 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CFDDdOMo.js.map +1 -0
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-KJ8YuuIQ.js → __federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js} +9 -13
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-KJ8YuuIQ.js.map → __federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js.map} +1 -1
- package/dist/web/assets/{__federation_fn_import-CVjKjdRb.js → __federation_fn_import-DsXcpNlB.js} +2 -2
- package/dist/web/assets/{__federation_fn_import-CVjKjdRb.js.map → __federation_fn_import-DsXcpNlB.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BTmJxb08.js → web-zqe3PPcn.js} +37 -118
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-zqe3PPcn.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-FK4Jv94w.js → project-builder-lib-CmgMfkI5.js} +2185 -2171
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CmgMfkI5.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-jZLf5m_y.js → ui-components-D1Dayhn9.js} +5 -5
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-jZLf5m_y.js.map → ui-components-D1Dayhn9.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-CAgM5SRt.js → utils-BO5VHrCf.js} +58 -6
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-BO5VHrCf.js.map +1 -0
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-DynsSbJG.js → react-router-CNzDweD5.js} +2 -2
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-DynsSbJG.js.map → react-router-CNzDweD5.js.map} +1 -1
- package/dist/web/assets/{get-auth-plugin-definition-DqZ2Eg7c.js → get-auth-plugin-definition-BV2O8wTa.js} +2 -2
- package/dist/web/assets/{get-auth-plugin-definition-DqZ2Eg7c.js.map → get-auth-plugin-definition-BV2O8wTa.js.map} +1 -1
- package/dist/web/assets/{index-Dccn3WBN.js → index-BL7fotl7.js} +2 -2
- package/dist/web/assets/{index-Dccn3WBN.js.map → index-BL7fotl7.js.map} +1 -1
- package/dist/web/assets/{index.esm-DeCjXqFv.js → index.esm-B4RpOlq_.js} +2 -2
- package/dist/web/assets/{index.esm-DeCjXqFv.js.map → index.esm-B4RpOlq_.js.map} +1 -1
- package/dist/web/assets/{isEqual-DAXqKRba.js → isEqual-BQtm2LNT.js} +5 -5
- package/dist/web/assets/{isEqual-DAXqKRba.js.map → isEqual-BQtm2LNT.js.map} +1 -1
- package/dist/web/assets/{model-merger-kOQ_dmiE.js → model-merger-BwRNqcBu.js} +194 -81
- package/dist/web/assets/model-merger-BwRNqcBu.js.map +1 -0
- package/dist/web/assets/{plugin-definition-JFxKP18O.js → plugin-definition-B9d2CoQL.js} +2 -2
- package/dist/web/assets/{plugin-definition-JFxKP18O.js.map → plugin-definition-B9d2CoQL.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-CxKhFkmJ.js → plugin-definition-BMTsmwyH.js} +2 -2
- package/dist/web/assets/{plugin-definition-CxKhFkmJ.js.map → plugin-definition-BMTsmwyH.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-DKygiFuR.js → plugin-definition-CHD5r-h7.js} +2 -2
- package/dist/web/assets/{plugin-definition-DKygiFuR.js.map → plugin-definition-CHD5r-h7.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-qkkt1X28.js → plugin-definition-DA9rJBcS.js} +2 -2
- package/dist/web/assets/{plugin-definition-qkkt1X28.js.map → plugin-definition-DA9rJBcS.js.map} +1 -1
- package/dist/web/assets/{react-DA5A88WZ.js → react-B9vhIZMy.js} +2 -2
- package/dist/web/assets/{react-DA5A88WZ.js.map → react-B9vhIZMy.js.map} +1 -1
- package/dist/web/assets/remoteEntry.js +10 -10
- package/dist/web/assets/{styles-CfTjrsB-.js → styles-CEm5K1iU.js} +3 -3
- package/dist/web/assets/{styles-CfTjrsB-.js.map → styles-CEm5K1iU.js.map} +1 -1
- package/package.json +14 -13
- package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.gql +0 -10
- package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.ts +0 -30
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.gql +0 -7
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.gql +0 -7
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -18
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js +0 -22
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.ts +0 -39
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.gql +0 -5
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/queries.gql +0 -17
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.gql +0 -7
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -14
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js +0 -23
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.ts +0 -35
- package/dist/web/assets/__federation_expose_auth0CoreCommon-DxPG_Wc0.js +0 -43
- package/dist/web/assets/__federation_expose_auth0CoreCommon-DxPG_Wc0.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreCommon-Cxa_7fkO.js +0 -29
- package/dist/web/assets/__federation_expose_authCoreCommon-Cxa_7fkO.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authAdminCommon-C0_ovnDb.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authAdminWeb-GqHU6av7.js +0 -40
- package/dist/web/assets/__federation_expose_local-authAdminWeb-GqHU6av7.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authCoreCommon-PHXPCKoj.js +0 -27
- package/dist/web/assets/__federation_expose_local-authCoreCommon-PHXPCKoj.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CrB_sJO_.js +0 -26
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CrB_sJO_.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BTmJxb08.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-FK4Jv94w.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-CAgM5SRt.js.map +0 -1
- 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;
|
|
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;
|
|
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":"
|
|
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 = {
|
|
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,
|
|
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"}
|
package/dist/auth0/generators/fastify/auth0-module/templates/module/schema/user-session.queries.ts
ADDED
|
@@ -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":"
|
|
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: ({
|
|
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,
|
|
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
|
|
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 +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,
|
|
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;
|
|
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 {
|
|
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,
|
|
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 {
|
|
2
|
-
import {
|
|
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({
|
|
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":"
|
|
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"}
|
|
@@ -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":"
|
|
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,
|
|
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":"
|
|
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 {
|
|
2
|
-
import {
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
2
|
-
|
|
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":"
|
|
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,
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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
|