@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
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
config: import("@baseplate-dev/project-builder-lib").PluginSpecWithInitializer<import("@baseplate-dev/project-builder-lib").PluginConfigSpec>;
|
|
4
|
-
}, {
|
|
5
|
-
authConfig: import("@baseplate-dev/project-builder-lib").PluginSpec<import("@baseplate-dev/project-builder-lib").AuthConfigSpec>;
|
|
1
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
2
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
6
3
|
}>;
|
|
7
4
|
export default _default;
|
|
8
5
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/auth/core/common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/auth/core/common.ts"],"names":[],"mappings":";;;AAWA,wBAqBG"}
|
package/dist/auth/core/common.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { authConfigSpec,
|
|
1
|
+
import { authConfigSpec, createPluginModule, pluginConfigSpec, PluginUtils, } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { createAuthPluginDefinitionSchema } from './schema/plugin-definition.js';
|
|
3
|
-
export default
|
|
3
|
+
export default createPluginModule({
|
|
4
|
+
name: 'common',
|
|
4
5
|
dependencies: {
|
|
5
|
-
|
|
6
|
-
},
|
|
7
|
-
exports: {
|
|
6
|
+
pluginConfig: pluginConfigSpec,
|
|
8
7
|
authConfig: authConfigSpec,
|
|
9
8
|
},
|
|
10
|
-
initialize: ({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
initialize: ({ authConfig, pluginConfig }, { pluginKey }) => {
|
|
10
|
+
pluginConfig.schemas.set(pluginKey, createAuthPluginDefinitionSchema);
|
|
11
|
+
authConfig.getAuthConfig.set((definition) => {
|
|
12
|
+
const pluginConfig = PluginUtils.configByKeyOrThrow(definition, pluginKey);
|
|
13
|
+
return {
|
|
14
|
+
roles: pluginConfig.roles,
|
|
15
|
+
modelNames: {
|
|
16
|
+
user: pluginConfig.authFeatureRef,
|
|
17
17
|
},
|
|
18
|
-
}
|
|
19
|
-
};
|
|
18
|
+
};
|
|
19
|
+
});
|
|
20
20
|
},
|
|
21
21
|
});
|
|
22
22
|
//# sourceMappingURL=common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/auth/core/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/auth/core/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,GACZ,MAAM,oCAAoC,CAAC;AAI5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAEjF,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,QAAQ;IACd,YAAY,EAAE;QACZ,YAAY,EAAE,gBAAgB;QAC9B,UAAU,EAAE,cAAc;KAC3B;IACD,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC1D,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,gCAAgC,CAAC,CAAC;QACtE,UAAU,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;YAC1C,MAAM,YAAY,GAAG,WAAW,CAAC,kBAAkB,CACjD,UAAU,EACV,SAAS,CACc,CAAC;YAC1B,OAAO;gBACL,KAAK,EAAE,YAAY,CAAC,KAAK;gBACzB,UAAU,EAAE;oBACV,IAAI,EAAE,YAAY,CAAC,cAAc;iBAClC;aACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
|
package/dist/auth/core/node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const _default: import("@baseplate-dev/project-builder-lib").
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
2
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
3
|
+
}>;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/auth/core/node.ts"],"names":[],"mappings":";;;AAsBA,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/auth/core/node.ts"],"names":[],"mappings":";;;AAsBA,wBAgDG"}
|
package/dist/auth/core/node.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { authContextGenerator, authPluginGenerator, authRolesGenerator, pothosAuthGenerator, prismaAuthorizerUtilsGenerator, userSessionTypesGenerator, } from '@baseplate-dev/fastify-generators';
|
|
2
|
-
import { appCompilerSpec, backendAppEntryType,
|
|
2
|
+
import { appCompilerSpec, backendAppEntryType, createPluginModule, PluginUtils, webAppEntryType, } from '@baseplate-dev/project-builder-lib';
|
|
3
3
|
import { authErrorsGenerator, authIdentifyGenerator, } from '@baseplate-dev/react-generators';
|
|
4
|
-
export default
|
|
4
|
+
export default createPluginModule({
|
|
5
|
+
name: 'node',
|
|
5
6
|
dependencies: {
|
|
6
7
|
appCompiler: appCompilerSpec,
|
|
7
8
|
},
|
|
8
|
-
exports: {},
|
|
9
9
|
initialize: ({ appCompiler }, { pluginKey }) => {
|
|
10
10
|
// register backend compiler
|
|
11
|
-
appCompiler.
|
|
11
|
+
appCompiler.compilers.push({
|
|
12
12
|
pluginKey,
|
|
13
13
|
appType: backendAppEntryType,
|
|
14
14
|
compile: ({ projectDefinition, appCompiler }) => {
|
|
@@ -30,9 +30,7 @@ export default createPlatformPluginExport({
|
|
|
30
30
|
authorizerUtils: prismaAuthorizerUtilsGenerator({}),
|
|
31
31
|
});
|
|
32
32
|
},
|
|
33
|
-
}
|
|
34
|
-
// register web compiler
|
|
35
|
-
appCompiler.registerAppCompiler({
|
|
33
|
+
}, {
|
|
36
34
|
pluginKey,
|
|
37
35
|
appType: webAppEntryType,
|
|
38
36
|
compile: ({ appCompiler }) => {
|
|
@@ -42,7 +40,6 @@ export default createPlatformPluginExport({
|
|
|
42
40
|
});
|
|
43
41
|
},
|
|
44
42
|
});
|
|
45
|
-
return {};
|
|
46
43
|
},
|
|
47
44
|
});
|
|
48
45
|
//# sourceMappingURL=node.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/auth/core/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/auth/core/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,iCAAiC,CAAC;AAIzC,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE;QACZ,WAAW,EAAE,eAAe;KAC7B;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AAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/dist/auth/core/web.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../styles.css';
|
|
2
|
-
declare const _default: import("@baseplate-dev/project-builder-lib").
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
3
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
4
|
+
}>;
|
|
5
5
|
export default _default;
|
|
6
6
|
//# sourceMappingURL=web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/auth/core/web.ts"],"names":[],"mappings":"AAOA,OAAO,kBAAkB,CAAC;;;;AAE1B,
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/auth/core/web.ts"],"names":[],"mappings":"AAOA,OAAO,kBAAkB,CAAC;;;;AAE1B,wBAQG"}
|
package/dist/auth/core/web.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createPluginModule, webConfigSpec, } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { AuthDefinitionEditor } from './components/auth-definition-editor.js';
|
|
3
3
|
import '../../styles.css';
|
|
4
|
-
export default
|
|
4
|
+
export default createPluginModule({
|
|
5
|
+
name: 'web',
|
|
5
6
|
dependencies: {
|
|
6
7
|
webConfig: webConfigSpec,
|
|
7
8
|
},
|
|
8
|
-
exports: {},
|
|
9
9
|
initialize: ({ webConfig }, { pluginKey }) => {
|
|
10
|
-
webConfig.
|
|
11
|
-
return {};
|
|
10
|
+
webConfig.components.set(pluginKey, AuthDefinitionEditor);
|
|
12
11
|
},
|
|
13
12
|
});
|
|
14
13
|
//# sourceMappingURL=web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/auth/core/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/auth/core/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,aAAa,GACd,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,OAAO,kBAAkB,CAAC;AAE1B,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,KAAK;IACX,YAAY,EAAE;QACZ,SAAS,EAAE,aAAa;KACzB;IACD,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC3C,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;IAC5D,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
declare const _default: import("@baseplate-dev/project-builder-lib").
|
|
3
|
-
|
|
4
|
-
}, {
|
|
5
|
-
authModelConfig: import("@baseplate-dev/project-builder-lib").PluginSpec<import("@baseplate-dev/project-builder-lib").AuthModelConfigSpec>;
|
|
1
|
+
export type { PluginModule } from '@baseplate-dev/project-builder-lib';
|
|
2
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
3
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
6
4
|
}>;
|
|
7
5
|
export default _default;
|
|
8
6
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/auth0/core/common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/auth0/core/common.ts"],"names":[],"mappings":"AAWA,YAAY,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;;;;AAEvE,wBAcG"}
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { authModelsSpec, createPluginModule, pluginConfigSpec, } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { AUTH0_MODELS } from '../constants/model-names.js';
|
|
3
3
|
import { AUTH0_PLUGIN_CONFIG_MIGRATIONS } from './schema/migrations.js';
|
|
4
4
|
import { createAuth0PluginDefinitionSchema } from './schema/plugin-definition.js';
|
|
5
|
-
export default
|
|
5
|
+
export default createPluginModule({
|
|
6
|
+
name: 'common',
|
|
6
7
|
dependencies: {
|
|
7
|
-
|
|
8
|
+
pluginConfig: pluginConfigSpec,
|
|
9
|
+
authModels: authModelsSpec,
|
|
8
10
|
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return {
|
|
16
|
-
authModelConfig: {
|
|
17
|
-
getUserModel: (definition) => ModelUtils.byNameOrThrow(definition, AUTH0_MODELS.user),
|
|
18
|
-
},
|
|
19
|
-
};
|
|
11
|
+
initialize: ({ pluginConfig, authModels }, { pluginKey }) => {
|
|
12
|
+
pluginConfig.schemas.set(pluginKey, createAuth0PluginDefinitionSchema);
|
|
13
|
+
pluginConfig.migrations.set(pluginKey, AUTH0_PLUGIN_CONFIG_MIGRATIONS);
|
|
14
|
+
authModels.getAuthModels.set(() => ({
|
|
15
|
+
user: AUTH0_MODELS.user,
|
|
16
|
+
}));
|
|
20
17
|
},
|
|
21
18
|
});
|
|
22
19
|
//# sourceMappingURL=common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/auth0/core/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/auth0/core/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,iCAAiC,EAAE,MAAM,+BAA+B,CAAC;AAKlF,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,QAAQ;IACd,YAAY,EAAE;QACZ,YAAY,EAAE,gBAAgB;QAC9B,UAAU,EAAE,cAAc;KAC3B;IACD,UAAU,EAAE,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC1D,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,iCAAiC,CAAC,CAAC;QACvE,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,EAAE,8BAA8B,CAAC,CAAC;QAEvE,UAAU,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;YAClC,IAAI,EAAE,YAAY,CAAC,IAAI;SACxB,CAAC,CAAC,CAAC;IACN,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const _default: import("@baseplate-dev/project-builder-lib").
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
2
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
3
|
+
}>;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/auth0/core/node.ts"],"names":[],"mappings":";;;AAkBA,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/auth0/core/node.ts"],"names":[],"mappings":";;;AAkBA,wBA4CG"}
|
package/dist/auth0/core/node.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { appCompilerSpec, backendAppEntryType,
|
|
1
|
+
import { appCompilerSpec, backendAppEntryType, createPluginModule, webAppEntryType, } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { reactRoutesGenerator } from '@baseplate-dev/react-generators';
|
|
3
3
|
import { getAuthPluginDefinition } from '#src/auth/utils/get-auth-plugin-definition.js';
|
|
4
4
|
import { auth0ApolloGenerator, auth0HooksGenerator, auth0ModuleGenerator, auth0PagesGenerator, reactAuth0Generator, } from '../generators/index.js';
|
|
5
|
-
export default
|
|
5
|
+
export default createPluginModule({
|
|
6
|
+
name: 'node',
|
|
6
7
|
dependencies: {
|
|
7
8
|
appCompiler: appCompilerSpec,
|
|
8
9
|
},
|
|
9
|
-
exports: {},
|
|
10
10
|
initialize: ({ appCompiler }, { pluginKey }) => {
|
|
11
11
|
// register backend compiler
|
|
12
|
-
appCompiler.
|
|
12
|
+
appCompiler.compilers.push({
|
|
13
13
|
pluginKey,
|
|
14
14
|
appType: backendAppEntryType,
|
|
15
15
|
compile: ({ projectDefinition, appCompiler }) => {
|
|
@@ -20,9 +20,7 @@ export default createPlatformPluginExport({
|
|
|
20
20
|
}),
|
|
21
21
|
});
|
|
22
22
|
},
|
|
23
|
-
}
|
|
24
|
-
// register web compiler
|
|
25
|
-
appCompiler.registerAppCompiler({
|
|
23
|
+
}, {
|
|
26
24
|
pluginKey,
|
|
27
25
|
appType: webAppEntryType,
|
|
28
26
|
compile: ({ appCompiler, projectDefinition }) => {
|
|
@@ -42,7 +40,6 @@ export default createPlatformPluginExport({
|
|
|
42
40
|
});
|
|
43
41
|
},
|
|
44
42
|
});
|
|
45
|
-
return {};
|
|
46
43
|
},
|
|
47
44
|
});
|
|
48
45
|
//# sourceMappingURL=node.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/auth0/core/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB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BAAmB,CAAC;wBAC7B,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;qBAC/C,CAAC;oBACF,WAAW,EAAE,oBAAoB,CAAC,EAAE,CAAC;oBACrC,aAAa,EAAE,oBAAoB,CAAC;wBAClC,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE;4BACR,IAAI,EAAE,mBAAmB,CAAC,EAAE,CAAC;yBAC9B;qBACF,CAAC;iBACH,CAAC,CAAC;YACL,CAAC;SACF,CACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/dist/auth0/core/web.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../styles.css';
|
|
2
|
-
declare const _default: import("@baseplate-dev/project-builder-lib").
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
3
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
4
|
+
}>;
|
|
5
5
|
export default _default;
|
|
6
6
|
//# sourceMappingURL=web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/auth0/core/web.ts"],"names":[],"mappings":"AAOA,OAAO,kBAAkB,CAAC;;;;AAE1B,
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/auth0/core/web.ts"],"names":[],"mappings":"AAOA,OAAO,kBAAkB,CAAC;;;;AAE1B,wBAQG"}
|
package/dist/auth0/core/web.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createPluginModule, webConfigSpec, } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { Auth0DefinitionEditor } from './components/auth0-definition-editor.js';
|
|
3
3
|
import '../../styles.css';
|
|
4
|
-
export default
|
|
4
|
+
export default createPluginModule({
|
|
5
|
+
name: 'web',
|
|
5
6
|
dependencies: {
|
|
6
7
|
webConfig: webConfigSpec,
|
|
7
8
|
},
|
|
8
|
-
exports: {},
|
|
9
9
|
initialize: ({ webConfig }, { pluginKey }) => {
|
|
10
|
-
webConfig.
|
|
11
|
-
return {};
|
|
10
|
+
webConfig.components.set(pluginKey, Auth0DefinitionEditor);
|
|
12
11
|
},
|
|
13
12
|
});
|
|
14
13
|
//# sourceMappingURL=web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/auth0/core/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/auth0/core/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,aAAa,GACd,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,OAAO,kBAAkB,CAAC;AAE1B,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,KAAK;IACX,YAAY,EAAE;QACZ,SAAS,EAAE,aAAa;KACzB;IACD,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC3C,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,EAAE,qBAAqB,CAAC,CAAC;IAC7D,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -13,15 +13,24 @@ export declare const auth0ModuleGenerator: import("@baseplate-dev/sync").Generat
|
|
|
13
13
|
}, {
|
|
14
14
|
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").Auth0Auth0ModulePaths>;
|
|
15
15
|
}, undefined>;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
renderers: import("@baseplate-dev/sync").GeneratorTask<{
|
|
17
|
+
auth0Auth0ModuleRenderers: import("@baseplate-dev/sync").ProviderExport<import("./generated/template-renderers.js").Auth0Auth0ModuleRenderers>;
|
|
18
|
+
}, {
|
|
19
|
+
authContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
20
|
+
AuthContext: {
|
|
21
|
+
isTypeOnly: true;
|
|
22
|
+
};
|
|
23
|
+
AuthSessionInfo: {
|
|
24
|
+
isTypeOnly: true;
|
|
25
|
+
};
|
|
26
|
+
AuthUserSessionInfo: {
|
|
27
|
+
isTypeOnly: true;
|
|
28
|
+
};
|
|
29
|
+
createAnonymousAuthContext: {};
|
|
30
|
+
createAuthContextFromSessionInfo: {};
|
|
31
|
+
createSystemAuthContext: {};
|
|
32
|
+
InvalidSessionError: {};
|
|
33
|
+
}>>;
|
|
25
34
|
authRolesImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
26
35
|
AUTH_ROLE_CONFIG: {};
|
|
27
36
|
AuthRole: {
|
|
@@ -36,7 +45,14 @@ export declare const auth0ModuleGenerator: import("@baseplate-dev/sync").Generat
|
|
|
36
45
|
configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
37
46
|
config: {};
|
|
38
47
|
}>>;
|
|
39
|
-
|
|
48
|
+
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").Auth0Auth0ModulePaths>;
|
|
49
|
+
pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
50
|
+
builder: {};
|
|
51
|
+
}>>;
|
|
52
|
+
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
53
|
+
prisma: {};
|
|
54
|
+
}>>;
|
|
55
|
+
typescriptFile: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").TypescriptFileProvider>;
|
|
40
56
|
userSessionTypesImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
41
57
|
UserSessionPayload: {
|
|
42
58
|
isTypeOnly: true;
|
|
@@ -45,21 +61,19 @@ export declare const auth0ModuleGenerator: import("@baseplate-dev/sync").Generat
|
|
|
45
61
|
isTypeOnly: true;
|
|
46
62
|
};
|
|
47
63
|
}>>;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
InvalidSessionError: {};
|
|
62
|
-
}>>;
|
|
64
|
+
}, undefined>;
|
|
65
|
+
nodeManagementPackage: import("@baseplate-dev/sync").AnyGeneratorTask | undefined;
|
|
66
|
+
config: import("@baseplate-dev/sync").GeneratorTask<undefined, {
|
|
67
|
+
provider: import("@baseplate-dev/sync").ProviderType<Omit<import("@baseplate-dev/utils").FieldMap<{
|
|
68
|
+
configFields: import("@baseplate-dev/utils").MapContainer<string, import("@baseplate-dev/fastify-generators").ConfigServiceField>;
|
|
69
|
+
}>, "getValues">>;
|
|
70
|
+
}, undefined>;
|
|
71
|
+
main: import("@baseplate-dev/sync").GeneratorTask<any, {
|
|
72
|
+
prismaOutput: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/fastify-generators").PrismaOutputProvider>;
|
|
73
|
+
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").Auth0Auth0ModulePaths>;
|
|
74
|
+
renderers: import("@baseplate-dev/sync").ProviderType<import("./generated/template-renderers.js").Auth0Auth0ModuleRenderers>;
|
|
75
|
+
userObjectType: import("@baseplate-dev/sync").ProviderDependency<import("@baseplate-dev/fastify-generators").PothosTypeOutputProvider>;
|
|
76
|
+
appModule: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/fastify-generators").AppModuleProvider>;
|
|
63
77
|
}, any>;
|
|
64
78
|
nodePackages: import("@baseplate-dev/sync").AnyGeneratorTask;
|
|
65
79
|
fastifyAuth0Plugin: import("@baseplate-dev/sync").GeneratorTask<any, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth0-module.generator.d.ts","sourceRoot":"","sources":["../../../../../src/auth0/generators/fastify/auth0-module/auth0-module.generator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth0-module.generator.d.ts","sourceRoot":"","sources":["../../../../../src/auth0/generators/fastify/auth0-module/auth0-module.generator.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0H/B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createNodePackagesTask, extractPackageVersions, tsCodeFragment, tsImportBuilder,
|
|
2
|
-
import {
|
|
1
|
+
import { createNodePackagesTask, extractPackageVersions, tsCodeFragment, tsImportBuilder, } from '@baseplate-dev/core-generators';
|
|
2
|
+
import { appModuleProvider, configServiceImportsProvider, configServiceProvider, createPothosPrismaObjectTypeOutputName, fastifyServerConfigProvider, pothosTypeOutputProvider, prismaOutputProvider, } from '@baseplate-dev/fastify-generators';
|
|
3
3
|
import { createGenerator, createGeneratorTask, createProviderTask, } from '@baseplate-dev/sync';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { AUTH0_MODELS } from '#src/auth0/constants/model-names.js';
|
|
@@ -15,6 +15,7 @@ export const auth0ModuleGenerator = createGenerator({
|
|
|
15
15
|
buildTasks: ({ includeManagement }) => ({
|
|
16
16
|
paths: AUTH0_AUTH0_MODULE_GENERATED.paths.task,
|
|
17
17
|
imports: AUTH0_AUTH0_MODULE_GENERATED.imports.task,
|
|
18
|
+
renderers: AUTH0_AUTH0_MODULE_GENERATED.renderers.task,
|
|
18
19
|
nodeManagementPackage: includeManagement
|
|
19
20
|
? createNodePackagesTask({
|
|
20
21
|
prod: extractPackageVersions(AUTH0_PACKAGES, ['auth0']),
|
|
@@ -56,40 +57,33 @@ export const auth0ModuleGenerator = createGenerator({
|
|
|
56
57
|
}),
|
|
57
58
|
main: createGeneratorTask({
|
|
58
59
|
dependencies: {
|
|
59
|
-
typescriptFile: typescriptFileProvider,
|
|
60
|
-
paths: AUTH0_AUTH0_MODULE_GENERATED.paths.provider,
|
|
61
|
-
authRolesImports: authRolesImportsProvider,
|
|
62
|
-
configServiceImports: configServiceImportsProvider,
|
|
63
60
|
prismaOutput: prismaOutputProvider,
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
paths: AUTH0_AUTH0_MODULE_GENERATED.paths.provider,
|
|
62
|
+
renderers: AUTH0_AUTH0_MODULE_GENERATED.renderers.provider,
|
|
63
|
+
userObjectType: pothosTypeOutputProvider
|
|
64
|
+
.dependency()
|
|
65
|
+
.reference(createPothosPrismaObjectTypeOutputName(AUTH0_MODELS.user)),
|
|
66
|
+
appModule: appModuleProvider,
|
|
66
67
|
},
|
|
67
|
-
run({
|
|
68
|
+
run({ prismaOutput, renderers, userObjectType, appModule, paths }) {
|
|
68
69
|
return {
|
|
69
70
|
providers: {
|
|
70
71
|
auth0Module: {},
|
|
71
72
|
},
|
|
72
73
|
build: async (builder) => {
|
|
73
|
-
await builder.apply(
|
|
74
|
-
template: AUTH0_AUTH0_MODULE_GENERATED.templates.userSessionService,
|
|
75
|
-
destination: paths.userSessionService,
|
|
74
|
+
await builder.apply(renderers.userSessionQueries.render({
|
|
76
75
|
variables: {
|
|
77
|
-
|
|
76
|
+
TPL_USER_OBJECT_TYPE: userObjectType.getTypeReference().fragment,
|
|
78
77
|
},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
}));
|
|
79
|
+
appModule.moduleImports.push(paths.userSessionQueries);
|
|
80
|
+
await builder.apply(renderers.userSessionService.render({
|
|
81
|
+
variables: {
|
|
82
|
+
TPL_USER_MODEL: prismaOutput.getPrismaModelFragment(AUTH0_MODELS.user),
|
|
83
83
|
},
|
|
84
84
|
}));
|
|
85
85
|
if (includeManagement) {
|
|
86
|
-
await builder.apply(
|
|
87
|
-
template: AUTH0_AUTH0_MODULE_GENERATED.templates.management,
|
|
88
|
-
destination: paths.management,
|
|
89
|
-
importMapProviders: {
|
|
90
|
-
configServiceImports,
|
|
91
|
-
},
|
|
92
|
-
}));
|
|
86
|
+
await builder.apply(renderers.management.render({}));
|
|
93
87
|
}
|
|
94
88
|
},
|
|
95
89
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth0-module.generator.js","sourceRoot":"","sources":["../../../../../src/auth0/generators/fastify/auth0-module/auth0-module.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,cAAc,EACd,eAAe,
|
|
1
|
+
{"version":3,"file":"auth0-module.generator.js","sourceRoot":"","sources":["../../../../../src/auth0/generators/fastify/auth0-module/auth0-module.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,cAAc,EACd,eAAe,GAChB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,iBAAiB,EACjB,4BAA4B,EAC5B,qBAAqB,EACrB,sCAAsC,EACtC,2BAA2B,EAC3B,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,EAAE,4BAA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_AUTH0_MODULE_GENERATED: {
|
|
|
51
51
|
config: {};
|
|
52
52
|
}>>;
|
|
53
53
|
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").Auth0Auth0ModulePaths>;
|
|
54
|
+
pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
55
|
+
builder: {};
|
|
56
|
+
}>>;
|
|
57
|
+
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
58
|
+
prisma: {};
|
|
59
|
+
}>>;
|
|
54
60
|
typescriptFile: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").TypescriptFileProvider>;
|
|
55
61
|
userSessionTypesImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
56
62
|
UserSessionPayload: {
|
|
@@ -68,6 +74,16 @@ export declare const AUTH0_AUTH0_MODULE_GENERATED: {
|
|
|
68
74
|
config: {};
|
|
69
75
|
}>>;
|
|
70
76
|
}, Record<never, Record<never, never>>>;
|
|
77
|
+
userSessionQueries: import("@baseplate-dev/core-generators").TsTemplateFile<{
|
|
78
|
+
TPL_USER_OBJECT_TYPE: {};
|
|
79
|
+
}, {
|
|
80
|
+
pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
81
|
+
builder: {};
|
|
82
|
+
}>>;
|
|
83
|
+
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
84
|
+
prisma: {};
|
|
85
|
+
}>>;
|
|
86
|
+
}, Record<never, Record<never, never>>>;
|
|
71
87
|
userSessionService: import("@baseplate-dev/core-generators").TsTemplateFile<{
|
|
72
88
|
TPL_USER_MODEL: {};
|
|
73
89
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;
|
|
1
|
+
{"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAwBD,eAAO,MAAM,wBAAwB;;;;;;;CAGpC,CAAC"}
|
|
@@ -10,6 +10,7 @@ const auth0Auth0ModulePathsTask = createGeneratorTask({
|
|
|
10
10
|
providers: {
|
|
11
11
|
auth0Auth0ModulePaths: {
|
|
12
12
|
management: `${moduleRoot}/services/management.ts`,
|
|
13
|
+
userSessionQueries: `${moduleRoot}/schema/user-session.queries.ts`,
|
|
13
14
|
userSessionService: `${moduleRoot}/services/user-session.service.ts`,
|
|
14
15
|
},
|
|
15
16
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/fastify/auth0-module/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAQ9E,MAAM,qBAAqB,GAAG,kBAAkB,CAC9C,0BAA0B,CAC3B,CAAC;AAEF,MAAM,yBAAyB,GAAG,mBAAmB,CAAC;IACpD,YAAY,EAAE,EAAE,SAAS,EAAE,iBAAiB,EAAE;IAC9C,OAAO,EAAE,EAAE,qBAAqB,EAAE,qBAAqB,CAAC,MAAM,EAAE,EAAE;IAClE,GAAG,CAAC,EAAE,SAAS,EAAE;QACf,MAAM,UAAU,GAAG,SAAS,CAAC,eAAe,EAAE,CAAC;QAE/C,OAAO;YACL,SAAS,EAAE;gBACT,qBAAqB,EAAE;oBACrB,UAAU,EAAE,GAAG,UAAU,yBAAyB;oBAClD,kBAAkB,EAAE,GAAG,UAAU,iCAAiC;oBAClE,kBAAkB,EAAE,GAAG,UAAU,mCAAmC;iBACrE;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,QAAQ,EAAE,qBAAqB;IAC/B,IAAI,EAAE,yBAAyB;CAChC,CAAC"}
|