@baseplate-dev/plugin-auth 2.0.3 → 2.0.5
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/auth0/constants/model-names.d.ts +4 -0
- package/dist/auth0/constants/model-names.d.ts.map +1 -0
- package/dist/auth0/constants/model-names.js +4 -0
- package/dist/auth0/constants/model-names.js.map +1 -0
- package/dist/auth0/core/common.d.ts.map +1 -1
- package/dist/auth0/core/common.js +3 -5
- package/dist/auth0/core/common.js.map +1 -1
- package/dist/auth0/core/components/auth0-definition-editor.d.ts.map +1 -1
- package/dist/auth0/core/components/auth0-definition-editor.js +11 -15
- package/dist/auth0/core/components/auth0-definition-editor.js.map +1 -1
- package/dist/auth0/core/node.d.ts.map +1 -1
- package/dist/auth0/core/node.js +2 -4
- package/dist/auth0/core/node.js.map +1 -1
- package/dist/auth0/core/schema/models.d.ts +2 -4
- package/dist/auth0/core/schema/models.d.ts.map +1 -1
- package/dist/auth0/core/schema/models.js +3 -2
- package/dist/auth0/core/schema/models.js.map +1 -1
- package/dist/auth0/core/schema/plugin-definition.d.ts +1 -18
- package/dist/auth0/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/auth0/core/schema/plugin-definition.js +2 -9
- package/dist/auth0/core/schema/plugin-definition.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts +0 -1
- 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 +3 -3
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +1 -1
- package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.d.ts.map +1 -1
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts.map +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +1 -1
- 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 +1 -0
- 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-reset-password-action/admin-crud-reset-password-action.generator.d.ts +1 -1
- package/dist/local-auth/admin/schema/manage-role-action.d.ts +3 -4
- package/dist/local-auth/admin/schema/manage-role-action.d.ts.map +1 -1
- package/dist/local-auth/admin/schema/reset-password-action.d.ts +3 -4
- package/dist/local-auth/admin/schema/reset-password-action.d.ts.map +1 -1
- package/dist/local-auth/admin/schema/roles-column.d.ts +3 -4
- package/dist/local-auth/admin/schema/roles-column.d.ts.map +1 -1
- package/dist/local-auth/admin/web.d.ts.map +1 -1
- package/dist/local-auth/admin/web.js +8 -13
- package/dist/local-auth/admin/web.js.map +1 -1
- package/dist/local-auth/constants/model-names.d.ts +19 -0
- package/dist/local-auth/constants/model-names.d.ts.map +1 -0
- package/dist/local-auth/constants/model-names.js +19 -0
- package/dist/local-auth/constants/model-names.js.map +1 -0
- package/dist/local-auth/core/common.d.ts.map +1 -1
- package/dist/local-auth/core/common.js +3 -5
- package/dist/local-auth/core/common.js.map +1 -1
- package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +1 -1
- package/dist/local-auth/core/components/local-auth-definition-editor.js +10 -16
- package/dist/local-auth/core/components/local-auth-definition-editor.js.map +1 -1
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +0 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +3 -3
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +1 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +0 -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 +5 -6
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +5 -5
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +6 -6
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +1 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js +4 -24
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js.map +1 -1
- package/dist/local-auth/core/node.d.ts.map +1 -1
- package/dist/local-auth/core/node.js +0 -3
- package/dist/local-auth/core/node.js.map +1 -1
- package/dist/local-auth/core/schema/models.d.ts +2 -7
- package/dist/local-auth/core/schema/models.d.ts.map +1 -1
- package/dist/local-auth/core/schema/models.js +9 -8
- package/dist/local-auth/core/schema/models.js.map +1 -1
- package/dist/local-auth/core/schema/plugin-definition.d.ts +0 -28
- package/dist/local-auth/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/local-auth/core/schema/plugin-definition.js +1 -19
- package/dist/local-auth/core/schema/plugin-definition.js.map +1 -1
- package/dist/placeholder-auth/constants/model-names.d.ts +4 -0
- package/dist/placeholder-auth/constants/model-names.d.ts.map +1 -0
- package/dist/placeholder-auth/constants/model-names.js +4 -0
- package/dist/placeholder-auth/constants/model-names.js.map +1 -0
- package/dist/placeholder-auth/core/common.d.ts.map +1 -1
- package/dist/placeholder-auth/core/common.js +3 -5
- package/dist/placeholder-auth/core/common.js.map +1 -1
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts.map +1 -1
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js +12 -16
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +1 -1
- package/dist/placeholder-auth/core/schema/models.d.ts +2 -4
- package/dist/placeholder-auth/core/schema/models.d.ts.map +1 -1
- package/dist/placeholder-auth/core/schema/models.js +3 -2
- package/dist/placeholder-auth/core/schema/models.js.map +1 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.d.ts +2 -18
- package/dist/placeholder-auth/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.js +2 -9
- package/dist/placeholder-auth/core/schema/plugin-definition.js.map +1 -1
- package/dist/web/assets/{__federation_expose_auth0CoreCommon-Dd4OxG3J.js → __federation_expose_auth0CoreCommon-zQL4xAil.js} +5 -11
- package/dist/web/assets/__federation_expose_auth0CoreCommon-zQL4xAil.js.map +1 -0
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-C_de43BE.js → __federation_expose_auth0CoreWeb-BQJHnPPM.js} +26 -41
- package/dist/web/assets/__federation_expose_auth0CoreWeb-BQJHnPPM.js.map +1 -0
- package/dist/web/assets/{__federation_expose_authCoreCommon-BAF30G9e.js → __federation_expose_authCoreCommon-hEy5zrff.js} +3 -3
- package/dist/web/assets/{__federation_expose_authCoreCommon-BAF30G9e.js.map → __federation_expose_authCoreCommon-hEy5zrff.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_authCoreWeb-B26BFarY.js → __federation_expose_authCoreWeb-UlIYc0cq.js} +6 -6
- package/dist/web/assets/{__federation_expose_authCoreWeb-B26BFarY.js.map → __federation_expose_authCoreWeb-UlIYc0cq.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-DLbuTALX.js → __federation_expose_local-authAdminCommon-DyMAwXJ7.js} +2 -2
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-DLbuTALX.js.map → __federation_expose_local-authAdminCommon-DyMAwXJ7.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminWeb-bT8Js4V6.js → __federation_expose_local-authAdminWeb-B6PdHqzu.js} +7 -25
- package/dist/web/assets/__federation_expose_local-authAdminWeb-B6PdHqzu.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-BtQr1I4Q.js +27 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-BtQr1I4Q.js.map +1 -0
- package/dist/web/assets/{__federation_expose_local-authCoreWeb-DKVkRzEo.js → __federation_expose_local-authCoreWeb-DsK2Dfpr.js} +33 -87
- package/dist/web/assets/__federation_expose_local-authCoreWeb-DsK2Dfpr.js.map +1 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-BZy2rgIt.js +26 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-BZy2rgIt.js.map +1 -0
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-tw3UiMLM.js → __federation_expose_placeholder-authCoreWeb-OEDsMJ_b.js} +28 -43
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-OEDsMJ_b.js.map +1 -0
- package/dist/web/assets/{__federation_fn_import-B_QMlAIe.js → __federation_fn_import-v1QB_w7U.js} +2 -2
- package/dist/web/assets/{__federation_fn_import-B_QMlAIe.js.map → __federation_fn_import-v1QB_w7U.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-DdrB9jrq.js → web-Cb2knzA_.js} +6 -6
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-Cb2knzA_.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-BvG5Zcxb.js → project-builder-lib-CJdJXC1f.js} +25 -98
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CJdJXC1f.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-CjIA8Av2.js → ui-components-CrL3nReP.js} +6 -6
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-CrL3nReP.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-LpAGNm5N.js → utils-CJgKqZu4.js} +173 -4
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-CJgKqZu4.js.map +1 -0
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-CEcQRiV1.js → react-router-DdszvTPE.js} +2 -2
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-CEcQRiV1.js.map → react-router-DdszvTPE.js.map} +1 -1
- package/dist/web/assets/{__federation_shared_zod-BK7IELHt.js → __federation_shared_zod-BGUJlEOa.js} +213 -302
- package/dist/web/assets/__federation_shared_zod-BGUJlEOa.js.map +1 -0
- package/dist/web/assets/{get-auth-plugin-definition-BrApugiB.js → get-auth-plugin-definition-Qo_0oJFS.js} +2 -2
- package/dist/web/assets/{get-auth-plugin-definition-BrApugiB.js.map → get-auth-plugin-definition-Qo_0oJFS.js.map} +1 -1
- package/dist/web/assets/{index-DAcyTb_o.js → index-KXYo3x9T.js} +2 -2
- package/dist/web/assets/{index-DAcyTb_o.js.map → index-KXYo3x9T.js.map} +1 -1
- package/dist/web/assets/{index.esm-BFQQfZNu.js → index.esm-BsVb2e-m.js} +2 -2
- package/dist/web/assets/{index.esm-BFQQfZNu.js.map → index.esm-BsVb2e-m.js.map} +1 -1
- package/dist/web/assets/{model-merger-boZDknXa.js → model-merger-BeuqGz00.js} +35 -59
- package/dist/web/assets/model-merger-BeuqGz00.js.map +1 -0
- package/dist/web/assets/model-names-CEoSIalq.js +21 -0
- package/dist/web/assets/model-names-CEoSIalq.js.map +1 -0
- package/dist/web/assets/plugin-definition-C1FCvorP.js +16 -0
- package/dist/web/assets/plugin-definition-C1FCvorP.js.map +1 -0
- package/dist/web/assets/plugin-definition-CeI3VlQi.js +31 -0
- package/dist/web/assets/plugin-definition-CeI3VlQi.js.map +1 -0
- package/dist/web/assets/plugin-definition-CpmhXG71.js +16 -0
- package/dist/web/assets/plugin-definition-CpmhXG71.js.map +1 -0
- package/dist/web/assets/{plugin-definition-CyqVivit.js → plugin-definition-p6J3lSNe.js} +2 -2
- package/dist/web/assets/{plugin-definition-CyqVivit.js.map → plugin-definition-p6J3lSNe.js.map} +1 -1
- package/dist/web/assets/{react-CKjL52W8.js → react-BUJ02Ozg.js} +2 -2
- package/dist/web/assets/{react-CKjL52W8.js.map → react-BUJ02Ozg.js.map} +1 -1
- package/dist/web/assets/remoteEntry.js +20 -20
- package/dist/web/assets/{style-BhUCMIWI.css → style-Cu4lNOci.css} +0 -18
- package/dist/web/assets/{styles-CyTaudys.js → styles-DMYfkBXJ.js} +3 -3
- package/dist/web/assets/{styles-CyTaudys.js.map → styles-DMYfkBXJ.js.map} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +14 -14
- package/dist/web/assets/__federation_expose_auth0CoreCommon-Dd4OxG3J.js.map +0 -1
- package/dist/web/assets/__federation_expose_auth0CoreWeb-C_de43BE.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authAdminWeb-bT8Js4V6.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authCoreCommon-D9tovFrj.js +0 -32
- package/dist/web/assets/__federation_expose_local-authCoreCommon-D9tovFrj.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authCoreWeb-DKVkRzEo.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-D1fszuKq.js +0 -32
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-D1fszuKq.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-tw3UiMLM.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-DdrB9jrq.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-BvG5Zcxb.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-CjIA8Av2.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-LpAGNm5N.js.map +0 -1
- package/dist/web/assets/__federation_shared_zod-BK7IELHt.js.map +0 -1
- package/dist/web/assets/model-merger-boZDknXa.js.map +0 -1
- package/dist/web/assets/plugin-definition-B7A-hS1o.js +0 -19
- package/dist/web/assets/plugin-definition-B7A-hS1o.js.map +0 -1
- package/dist/web/assets/plugin-definition-BeK0C-OP.js +0 -49
- package/dist/web/assets/plugin-definition-BeK0C-OP.js.map +0 -1
- package/dist/web/assets/plugin-definition-DfsGhMRb.js +0 -19
- package/dist/web/assets/plugin-definition-DfsGhMRb.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-names.d.ts","sourceRoot":"","sources":["../../../src/auth0/constants/model-names.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;CAEf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-names.js","sourceRoot":"","sources":["../../../src/auth0/constants/model-names.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM;CACJ,CAAC"}
|
|
@@ -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":"AAYA,YAAY,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;;;;;;AAE/E,wBAiBG"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { authModelConfigSpec, createPlatformPluginExport,
|
|
1
|
+
import { authModelConfigSpec, createPlatformPluginExport, ModelUtils, pluginConfigSpec, } from '@baseplate-dev/project-builder-lib';
|
|
2
|
+
import { AUTH0_MODELS } from '../constants/model-names.js';
|
|
2
3
|
import { AUTH0_PLUGIN_CONFIG_MIGRATIONS } from './schema/migrations.js';
|
|
3
4
|
import { createAuth0PluginDefinitionSchema } from './schema/plugin-definition.js';
|
|
4
5
|
export default createPlatformPluginExport({
|
|
@@ -13,10 +14,7 @@ export default createPlatformPluginExport({
|
|
|
13
14
|
config.registerMigrations(pluginKey, AUTH0_PLUGIN_CONFIG_MIGRATIONS);
|
|
14
15
|
return {
|
|
15
16
|
authModelConfig: {
|
|
16
|
-
getUserModel: (definition) =>
|
|
17
|
-
const pluginConfig = PluginUtils.configByKeyOrThrow(definition, pluginKey);
|
|
18
|
-
return pluginConfig.modelRefs.user;
|
|
19
|
-
},
|
|
17
|
+
getUserModel: (definition) => ModelUtils.byNameOrThrow(definition, AUTH0_MODELS.user),
|
|
20
18
|
},
|
|
21
19
|
};
|
|
22
20
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/auth0/core/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/auth0/core/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,UAAU,EACV,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,0BAA0B,CAAC;IACxC,YAAY,EAAE;QACZ,MAAM,EAAE,gBAAgB;KACzB;IACD,OAAO,EAAE;QACP,eAAe,EAAE,mBAAmB;KACrC;IACD,UAAU,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QACxC,MAAM,CAAC,qBAAqB,CAAC,SAAS,EAAE,iCAAiC,CAAC,CAAC;QAC3E,MAAM,CAAC,kBAAkB,CAAC,SAAS,EAAE,8BAA8B,CAAC,CAAC;QACrE,OAAO;YACL,eAAe,EAAE;gBACf,YAAY,EAAE,CAAC,UAAU,EAAE,EAAE,CAC3B,UAAU,CAAC,aAAa,CAAC,UAAU,EAAE,YAAY,CAAC,IAAI,CAAC;aAC1D;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth0-definition-editor.d.ts","sourceRoot":"","sources":["../../../../src/auth0/core/components/auth0-definition-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"auth0-definition-editor.d.ts","sourceRoot":"","sources":["../../../../src/auth0/core/components/auth0-definition-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoC/B,OAAO,iBAAiB,CAAC;AAEzB,wBAAgB,qBAAqB,CAAC,EACpC,UAAU,EAAE,cAAc,EAC1B,QAAQ,EACR,MAAM,GACP,EAAE,cAAc,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA2GpC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { createAndApplyModelMergerResults, createModelMergerResults, doesModelMergerResultsHaveChanges,
|
|
3
|
-
import {
|
|
2
|
+
import { createAndApplyModelMergerResults, createModelMergerResults, doesModelMergerResultsHaveChanges, PluginUtils, } from '@baseplate-dev/project-builder-lib';
|
|
3
|
+
import { ModelMergerResultAlert, useBlockUnsavedChangesNavigate, useDefinitionSchema, useProjectDefinition, useResettableForm, } from '@baseplate-dev/project-builder-lib/web';
|
|
4
4
|
import { FormActionBar, SectionList, SectionListSection, SectionListSectionContent, SectionListSectionDescription, SectionListSectionHeader, SectionListSectionTitle, } from '@baseplate-dev/ui-components';
|
|
5
5
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
6
6
|
import { useMemo } from 'react';
|
|
7
7
|
import { getAuthPluginDefinition } from '#src/auth/utils/get-auth-plugin-definition.js';
|
|
8
|
+
import { AUTH0_MODELS } from '#src/auth0/constants/model-names.js';
|
|
8
9
|
import { AuthConfigTabs } from '#src/common/components/auth-config-tabs.js';
|
|
9
10
|
import { createAuth0Models } from '../schema/models.js';
|
|
10
11
|
import { createAuth0PluginDefinitionSchema } from '../schema/plugin-definition.js';
|
|
@@ -16,28 +17,23 @@ export function Auth0DefinitionEditor({ definition: pluginMetadata, metadata, on
|
|
|
16
17
|
if (pluginMetadata?.config) {
|
|
17
18
|
return pluginMetadata.config;
|
|
18
19
|
}
|
|
19
|
-
return {
|
|
20
|
-
|
|
21
|
-
user: ModelUtils.getModelIdByNameOrDefault(definition, 'User'),
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
}, [definition, pluginMetadata?.config]);
|
|
20
|
+
return {};
|
|
21
|
+
}, [pluginMetadata?.config]);
|
|
25
22
|
const form = useResettableForm({
|
|
26
23
|
resolver: zodResolver(auth0PluginDefinitionSchema),
|
|
27
24
|
defaultValues,
|
|
28
25
|
});
|
|
29
|
-
const { control, reset, handleSubmit
|
|
30
|
-
const modelRefs = watch('modelRefs');
|
|
26
|
+
const { control, reset, handleSubmit } = form;
|
|
31
27
|
const authDefinition = getAuthPluginDefinition(definition);
|
|
32
28
|
const pendingModelChanges = useMemo(() => {
|
|
33
|
-
const desiredModels = createAuth0Models(
|
|
34
|
-
return createModelMergerResults(
|
|
35
|
-
}, [definitionContainer, authDefinition
|
|
29
|
+
const desiredModels = createAuth0Models(authDefinition);
|
|
30
|
+
return createModelMergerResults(AUTH0_MODELS, desiredModels, definitionContainer);
|
|
31
|
+
}, [definitionContainer, authDefinition]);
|
|
36
32
|
const onSubmit = handleSubmit((data) => saveDefinitionWithFeedback((draftConfig) => {
|
|
37
33
|
const updatedData = {
|
|
38
34
|
...data,
|
|
39
35
|
};
|
|
40
|
-
createAndApplyModelMergerResults(draftConfig,
|
|
36
|
+
createAndApplyModelMergerResults(draftConfig, AUTH0_MODELS, createAuth0Models(authDefinition), definitionContainer);
|
|
41
37
|
PluginUtils.setPluginConfig(draftConfig, metadata, updatedData, definitionContainer.pluginStore);
|
|
42
38
|
}, {
|
|
43
39
|
successMessage: 'Successfully saved Auth0 plugin!',
|
|
@@ -48,7 +44,7 @@ export function Auth0DefinitionEditor({ definition: pluginMetadata, metadata, on
|
|
|
48
44
|
useBlockUnsavedChangesNavigate({ control, reset, onSubmit });
|
|
49
45
|
return (_jsxs("div", { className: "auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden", children: [_jsx(AuthConfigTabs, {}), _jsx("div", { className: "auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto", style: {
|
|
50
46
|
'--action-bar-height': '52px',
|
|
51
|
-
}, children: _jsxs("form", { onSubmit: onSubmit, className: "auth:max-w-6xl auth:flex-1", children: [_jsx("div", { className: "auth:pb-16", children: _jsx(SectionList, { children: _jsxs(SectionListSection, { children: [_jsxs(SectionListSectionHeader, { children: [_jsx(SectionListSectionTitle, { children: "Auth0 Configuration" }), _jsx(SectionListSectionDescription, { children: "
|
|
47
|
+
}, children: _jsxs("form", { onSubmit: onSubmit, className: "auth:max-w-6xl auth:flex-1", children: [_jsx("div", { className: "auth:pb-16", children: _jsx(SectionList, { children: _jsxs(SectionListSection, { children: [_jsxs(SectionListSectionHeader, { children: [_jsx(SectionListSectionTitle, { children: "Auth0 Configuration" }), _jsx(SectionListSectionDescription, { children: "The plugin will automatically configure the models it needs." })] }), _jsx(SectionListSectionContent, { className: "auth:space-y-6", children: _jsx(ModelMergerResultAlert, { pendingModelChanges: pendingModelChanges }) })] }) }) }), _jsx(FormActionBar, { form: form, allowSaveWithoutDirty: !pluginMetadata ||
|
|
52
48
|
doesModelMergerResultsHaveChanges(pendingModelChanges) })] }) })] }));
|
|
53
49
|
}
|
|
54
50
|
//# sourceMappingURL=auth0-definition-editor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth0-definition-editor.js","sourceRoot":"","sources":["../../../../src/auth0/core/components/auth0-definition-editor.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,gCAAgC,EAChC,wBAAwB,EACxB,iCAAiC,EACjC,
|
|
1
|
+
{"version":3,"file":"auth0-definition-editor.js","sourceRoot":"","sources":["../../../../src/auth0/core/components/auth0-definition-editor.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,gCAAgC,EAChC,wBAAwB,EACxB,iCAAiC,EACjC,WAAW,GACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAI5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AAEnF,OAAO,iBAAiB,CAAC;AAEzB,MAAM,UAAU,qBAAqB,CAAC,EACpC,UAAU,EAAE,cAAc,E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CAAC;IACJ,CAAC,EACD;QACE,cAAc,EAAE,kCAAkC;QAClD,SAAS,EAAE,GAAG,EAAE;YACd,MAAM,EAAE,CAAC;QACX,CAAC;KACF,CACF,CACF,CAAC;IAEF,8BAA8B,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;IAE7D,OAAO,CACL,eAAK,SAAS,EAAC,+FAA+F,aAC5G,KAAC,cAAc,KAAG,EAClB,cACE,SAAS,EAAC,0EAA0E,EACpF,KAAK,EACH;oBACE,qBAAqB,EAAE,MAAM;iBACP,YAG1B,gBAAM,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAC,4BAA4B,aAC9D,cAAK,SAAS,EAAC,YAAY,YACzB,KAAC,WAAW,cACV,MAAC,kBAAkB,eACjB,MAAC,wBAAwB,eACvB,KAAC,uBAAuB,sCAEE,EAC1B,KAAC,6BAA6B,+EAEE,IACP,EAC3B,KAAC,yBAAyB,IAAC,SAAS,EAAC,gBAAgB,YACnD,KAAC,sBAAsB,IACrB,mBAAmB,EAAE,mBAAmB,GACxC,GACwB,IACT,GACT,GACV,EAEN,KAAC,aAAa,IACZ,IAAI,EAAE,IAAI,EACV,qBAAqB,EACnB,CAAC,cAAc;gCACf,iCAAiC,CAAC,mBAAmB,CAAC,GAExD,IACG,GACH,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/auth0/core/node.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/auth0/core/node.ts"],"names":[],"mappings":";;;AAkBA,wBA8CG"}
|
package/dist/auth0/core/node.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { appCompilerSpec, backendAppEntryType, createPlatformPluginExport,
|
|
1
|
+
import { appCompilerSpec, backendAppEntryType, createPlatformPluginExport, 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';
|
|
@@ -12,12 +12,10 @@ export default createPlatformPluginExport({
|
|
|
12
12
|
appCompiler.registerAppCompiler({
|
|
13
13
|
pluginKey,
|
|
14
14
|
appType: backendAppEntryType,
|
|
15
|
-
compile: ({ projectDefinition,
|
|
16
|
-
const auth0PluginDefinition = PluginUtils.configByKeyOrThrow(projectDefinition, pluginKey);
|
|
15
|
+
compile: ({ projectDefinition, appCompiler }) => {
|
|
17
16
|
const auth = getAuthPluginDefinition(projectDefinition);
|
|
18
17
|
appCompiler.addChildrenToFeature(auth.authFeatureRef, {
|
|
19
18
|
auth0Module: auth0ModuleGenerator({
|
|
20
|
-
userModelName: definitionContainer.nameFromId(auth0PluginDefinition.modelRefs.user),
|
|
21
19
|
includeManagement: true,
|
|
22
20
|
}),
|
|
23
21
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/auth0/core/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,0BAA0B,EAC1B,
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/auth0/core/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAEvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAExF,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,GACpB,M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;iBACH,CAAC,CAAC;YACL,CAAC;SACF,CAAC,CAAC;QAEH,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { ModelMergerModelInput } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import type { AuthPluginDefinition } from '#src/auth/core/schema/plugin-definition.js';
|
|
3
|
-
import
|
|
4
|
-
export declare function createAuth0Models({
|
|
5
|
-
user: ModelMergerModelInput;
|
|
6
|
-
};
|
|
3
|
+
import { AUTH0_MODELS } from '#src/auth0/constants/model-names.js';
|
|
4
|
+
export declare function createAuth0Models({ authFeatureRef, }: AuthPluginDefinition): Record<keyof typeof AUTH0_MODELS, ModelMergerModelInput>;
|
|
7
5
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/auth0/core/schema/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAEhF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAEvF,OAAO,
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/auth0/core/schema/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAEhF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAEvF,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,wBAAgB,iBAAiB,CAAC,EAChC,cAAc,GACf,EAAE,oBAAoB,GAAG,MAAM,CAC9B,MAAM,OAAO,YAAY,EACzB,qBAAqB,CACtB,CAqCA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { AUTH0_MODELS } from '#src/auth0/constants/model-names.js';
|
|
2
|
+
export function createAuth0Models({ authFeatureRef, }) {
|
|
2
3
|
return {
|
|
3
4
|
user: {
|
|
4
|
-
name:
|
|
5
|
+
name: AUTH0_MODELS.user,
|
|
5
6
|
featureRef: authFeatureRef,
|
|
6
7
|
model: {
|
|
7
8
|
fields: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/auth0/core/schema/models.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/auth0/core/schema/models.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,MAAM,UAAU,iBAAiB,CAAC,EAChC,cAAc,GACO;IAIrB,OAAO;QACL,IAAI,EAAE;YACJ,IAAI,EAAE,YAAY,CAAC,IAAI;YACvB,UAAU,EAAE,cAAc;YAC1B,KAAK,EAAE;gBACL,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,IAAI;wBACV,IAAI,EAAE,MAAM;wBACZ,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;qBAC3B;oBACD;wBACE,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,QAAQ;qBACf;oBACD;wBACE,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE,IAAI;qBACjB;iBACF;gBACD,mBAAmB,EAAE,CAAC,IAAI,CAAC;gBAC3B,iBAAiB,EAAE;oBACjB;wBACE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;qBAClC;iBACF;aACF;YACD,OAAO,EAAE;gBACP,UAAU,EAAE;oBACV,OAAO,EAAE,IAAI;oBACb,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC;iBACxB;aACF;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,22 +1,5 @@
|
|
|
1
1
|
import type { def } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
export declare const createAuth0PluginDefinitionSchema: (context: import("@baseplate-dev/project-builder-lib").DefinitionSchemaParserContext) => z.ZodObject<{
|
|
4
|
-
modelRefs: z.ZodObject<{
|
|
5
|
-
user: z.ZodEffects<z.ZodString, string, string>;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
user: string;
|
|
8
|
-
}, {
|
|
9
|
-
user: string;
|
|
10
|
-
}>;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
modelRefs: {
|
|
13
|
-
user: string;
|
|
14
|
-
};
|
|
15
|
-
}, {
|
|
16
|
-
modelRefs: {
|
|
17
|
-
user: string;
|
|
18
|
-
};
|
|
19
|
-
}>;
|
|
20
|
-
export type Auth0PluginDefinition = def.InferOutput<typeof createAuth0PluginDefinitionSchema>;
|
|
3
|
+
export declare const createAuth0PluginDefinitionSchema: (context: import("@baseplate-dev/project-builder-lib").DefinitionSchemaParserContext) => z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
21
4
|
export type Auth0PluginDefinitionInput = def.InferInput<typeof createAuth0PluginDefinitionSchema>;
|
|
22
5
|
//# sourceMappingURL=plugin-definition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-definition.d.ts","sourceRoot":"","sources":["../../../../src/auth0/core/schema/plugin-definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin-definition.d.ts","sourceRoot":"","sources":["../../../../src/auth0/core/schema/plugin-definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAG9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iCAAiC,yIAE7C,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,UAAU,CACrD,OAAO,iCAAiC,CACzC,CAAC"}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import { definitionSchema
|
|
1
|
+
import { definitionSchema } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
export const createAuth0PluginDefinitionSchema = definitionSchema((
|
|
4
|
-
modelRefs: z.object({
|
|
5
|
-
user: ctx.withRef({
|
|
6
|
-
type: modelEntityType,
|
|
7
|
-
onDelete: 'RESTRICT',
|
|
8
|
-
}),
|
|
9
|
-
}),
|
|
10
|
-
}));
|
|
3
|
+
export const createAuth0PluginDefinitionSchema = definitionSchema((_) => z.object({}));
|
|
11
4
|
//# sourceMappingURL=plugin-definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-definition.js","sourceRoot":"","sources":["../../../../src/auth0/core/schema/plugin-definition.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"plugin-definition.js","sourceRoot":"","sources":["../../../../src/auth0/core/schema/plugin-definition.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,iCAAiC,GAAG,gBAAgB,CAAC,CAAC,CAAC,EAAE,EAAE,CACtE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CACb,CAAC"}
|
|
@@ -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":"AAgCA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"auth0-module.generator.d.ts","sourceRoot":"","sources":["../../../../../src/auth0/generators/fastify/auth0-module/auth0-module.generator.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwI/B,CAAC"}
|
|
@@ -2,17 +2,17 @@ import { createNodePackagesTask, extractPackageVersions, tsCodeFragment, tsImpor
|
|
|
2
2
|
import { authContextImportsProvider, authRolesImportsProvider, configServiceImportsProvider, configServiceProvider, fastifyServerConfigProvider, prismaOutputProvider, userSessionTypesImportsProvider, } from '@baseplate-dev/fastify-generators';
|
|
3
3
|
import { createGenerator, createGeneratorTask, createProviderTask, } from '@baseplate-dev/sync';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
+
import { AUTH0_MODELS } from '#src/auth0/constants/model-names.js';
|
|
5
6
|
import { AUTH0_PACKAGES } from '#src/auth0/constants/packages.js';
|
|
6
7
|
import { AUTH0_AUTH0_MODULE_GENERATED } from './generated/index.js';
|
|
7
8
|
const descriptorSchema = z.object({
|
|
8
|
-
userModelName: z.string().min(1),
|
|
9
9
|
includeManagement: z.boolean().optional(),
|
|
10
10
|
});
|
|
11
11
|
export const auth0ModuleGenerator = createGenerator({
|
|
12
12
|
name: 'auth0/auth0-module',
|
|
13
13
|
generatorFileUrl: import.meta.url,
|
|
14
14
|
descriptorSchema,
|
|
15
|
-
buildTasks: ({ includeManagement
|
|
15
|
+
buildTasks: ({ includeManagement }) => ({
|
|
16
16
|
paths: AUTH0_AUTH0_MODULE_GENERATED.paths.task,
|
|
17
17
|
imports: AUTH0_AUTH0_MODULE_GENERATED.imports.task,
|
|
18
18
|
nodeManagementPackage: includeManagement
|
|
@@ -74,7 +74,7 @@ export const auth0ModuleGenerator = createGenerator({
|
|
|
74
74
|
template: AUTH0_AUTH0_MODULE_GENERATED.templates.userSessionService,
|
|
75
75
|
destination: paths.userSessionService,
|
|
76
76
|
variables: {
|
|
77
|
-
TPL_USER_MODEL: prismaOutput.getPrismaModelFragment(
|
|
77
|
+
TPL_USER_MODEL: prismaOutput.getPrismaModelFragment(AUTH0_MODELS.user),
|
|
78
78
|
},
|
|
79
79
|
importMapProviders: {
|
|
80
80
|
authContextImports,
|
|
@@ -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,EACf,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,qBAAqB,EACrB,2BAA2B,EAC3B,oBAAoB,EACpB,+BAA+B,GAChC,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,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAEpE,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,
|
|
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,EACf,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,qBAAqB,EACrB,2BAA2B,EAC3B,oBAAoB,EACpB,+BAA+B,GAChC,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,qC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AAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth0-apollo.generator.d.ts","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/auth0-apollo/auth0-apollo.generator.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"auth0-apollo.generator.d.ts","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/auth0-apollo/auth0-apollo.generator.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,oBAAoB;;;;;;;;EA4C/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-auth0.generator.d.ts","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/react-auth0/react-auth0.generator.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"react-auth0.generator.d.ts","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/react-auth0/react-auth0.generator.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0G9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-crud-manage-roles-action.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"admin-crud-manage-roles-action.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0H9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-crud-manage-roles-action.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,qBAAqB,GACtB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,gCAAgC,EAChC,wBAAwB,EACxB,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,yDAAyD,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAExH,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACrC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC5D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC,cAAc,EAAE,CAAC,CAAC,KAAK,CACrB,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mCAAmC,GAAG,eAAe,CAAC;IACjE,IAAI,EAAE,iDAAiD;IACvD,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,eAAe,EAAE,GAAG,EAAE,CAAC,cAAc;IACrC,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,cAAc,EAAE,EAAE,E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,KAAK,CAAC,iBAAiB,CAAC;iBACrE,CAAC,CAAA;;;;;;;;;;SAUD,CAAC;gBAEF,kCAAkC;gBAClC,wBAAwB,CAAC,SAAS,CAAC;oBACjC,IAAI,EAAE,cAAc;oBACpB,IAAI,EAAE,cAAc;oBACpB,QAAQ;oBACR,KAAK;oBACL,MAAM,EAAE,cAAc;oBACtB,WAAW;oBACX,cAAc;oBACd,aAAa,EAAE;wBACb;4BACE,IAAI,EAAE,OAAO;4BACb,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yBAC3B;
|
|
1
|
+
{"version":3,"file":"admin-crud-manage-roles-action.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,qBAAqB,GACtB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,gCAAgC,EAChC,wBAAwB,EACxB,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,yDAAyD,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAExH,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACrC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC5D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC,cAAc,EAAE,CAAC,CAAC,KAAK,CACrB,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,CAAC,C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AAC,MAAM,CAAC;4BACpC,SAAS,EAAE;gCACT,qBAAqB,EAAE,GAAG,aAAa,KAAK;6BAC7C;yBACF,CAAC,CACH,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Generator for local-auth/admin/admin-crud-reset-password-action
|
|
3
3
|
*/
|
|
4
4
|
export declare const adminCrudResetPasswordActionGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<{
|
|
5
|
-
userModelName: string;
|
|
6
5
|
order: number;
|
|
6
|
+
userModelName: string;
|
|
7
7
|
position?: "inline" | "dropdown" | undefined;
|
|
8
8
|
}, {
|
|
9
9
|
paths: import("@baseplate-dev/sync").GeneratorTask<{
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { def } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
export declare const createAdminCrudManageRolesActionSchema: (context: import("@baseplate-dev/project-builder-lib").DefinitionSchemaParserContext) => z.ZodObject<
|
|
3
|
+
export declare const createAdminCrudManageRolesActionSchema: (context: import("@baseplate-dev/project-builder-lib").DefinitionSchemaParserContext) => z.ZodObject<{
|
|
4
4
|
id: z.ZodDefault<z.ZodString>;
|
|
5
|
-
type: z.ZodString;
|
|
6
5
|
position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
|
|
7
|
-
}
|
|
6
|
+
} & {
|
|
8
7
|
type: z.ZodLiteral<"manage-roles">;
|
|
9
|
-
}
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
9
|
type: "manage-roles";
|
|
11
10
|
id: string;
|
|
12
11
|
position: "inline" | "dropdown";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manage-role-action.d.ts","sourceRoot":"","sources":["../../../../src/local-auth/admin/schema/manage-role-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAM9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sCAAsC
|
|
1
|
+
{"version":3,"file":"manage-role-action.d.ts","sourceRoot":"","sources":["../../../../src/local-auth/admin/schema/manage-role-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAM9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;EAIlD,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,GAAG,CAAC,WAAW,CAChE,OAAO,sCAAsC,CAC9C,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { def } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
export declare const createAdminCrudResetPasswordActionSchema: (context: import("@baseplate-dev/project-builder-lib").DefinitionSchemaParserContext) => z.ZodObject<
|
|
3
|
+
export declare const createAdminCrudResetPasswordActionSchema: (context: import("@baseplate-dev/project-builder-lib").DefinitionSchemaParserContext) => z.ZodObject<{
|
|
4
4
|
id: z.ZodDefault<z.ZodString>;
|
|
5
|
-
type: z.ZodString;
|
|
6
5
|
position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
|
|
7
|
-
}
|
|
6
|
+
} & {
|
|
8
7
|
type: z.ZodLiteral<"reset-password">;
|
|
9
|
-
}
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
9
|
type: "reset-password";
|
|
11
10
|
id: string;
|
|
12
11
|
position: "inline" | "dropdown";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-password-action.d.ts","sourceRoot":"","sources":["../../../../src/local-auth/admin/schema/reset-password-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAM9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wCAAwC
|
|
1
|
+
{"version":3,"file":"reset-password-action.d.ts","sourceRoot":"","sources":["../../../../src/local-auth/admin/schema/reset-password-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAM9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;EAIpD,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG,GAAG,CAAC,WAAW,CAClE,OAAO,wCAAwC,CAChD,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { def } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
export declare const createAdminCrudRolesColumnSchema: (context: import("@baseplate-dev/project-builder-lib").DefinitionSchemaParserContext) => z.ZodObject<
|
|
3
|
+
export declare const createAdminCrudRolesColumnSchema: (context: import("@baseplate-dev/project-builder-lib").DefinitionSchemaParserContext) => z.ZodObject<{
|
|
4
4
|
id: z.ZodDefault<z.ZodString>;
|
|
5
|
-
type: z.ZodString;
|
|
6
5
|
label: z.ZodString;
|
|
7
|
-
}
|
|
6
|
+
} & {
|
|
8
7
|
type: z.ZodLiteral<"roles">;
|
|
9
|
-
}
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
9
|
type: "roles";
|
|
11
10
|
id: string;
|
|
12
11
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles-column.d.ts","sourceRoot":"","sources":["../../../../src/local-auth/admin/schema/roles-column.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAM9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gCAAgC
|
|
1
|
+
{"version":3,"file":"roles-column.d.ts","sourceRoot":"","sources":["../../../../src/local-auth/admin/schema/roles-column.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAM9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;EAI5C,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,WAAW,CAC1D,OAAO,gCAAgC,CACxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/local-auth/admin/web.ts"],"names":[],"mappings":";;;;AAWA,
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/local-auth/admin/web.ts"],"names":[],"mappings":";;;;AAWA,wBAsCG"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { createPlatformPluginExport,
|
|
1
|
+
import { createPlatformPluginExport, ModelUtils, } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { adminCrudActionWebSpec, adminCrudColumnWebSpec, } from '@baseplate-dev/project-builder-lib/web';
|
|
3
|
+
import { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';
|
|
3
4
|
export default createPlatformPluginExport({
|
|
4
5
|
dependencies: {
|
|
5
6
|
adminCrudActionWeb: adminCrudActionWebSpec,
|
|
@@ -11,30 +12,24 @@ export default createPlatformPluginExport({
|
|
|
11
12
|
pluginKey,
|
|
12
13
|
name: 'manage-roles',
|
|
13
14
|
label: 'Manage Roles',
|
|
14
|
-
isAvailableForModel: (definition, modelId) =>
|
|
15
|
-
|
|
16
|
-
return modelId === pluginDefinition.modelRefs.user;
|
|
17
|
-
},
|
|
15
|
+
isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name ===
|
|
16
|
+
LOCAL_AUTH_MODELS.user,
|
|
18
17
|
getNewAction: () => ({ type: 'manage-roles', position: 'dropdown' }),
|
|
19
18
|
});
|
|
20
19
|
adminCrudActionWeb.registerActionWebConfig({
|
|
21
20
|
pluginKey,
|
|
22
21
|
name: 'reset-password',
|
|
23
22
|
label: 'Reset Password',
|
|
24
|
-
isAvailableForModel: (definition, modelId) =>
|
|
25
|
-
|
|
26
|
-
return modelId === pluginDefinition.modelRefs.user;
|
|
27
|
-
},
|
|
23
|
+
isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name ===
|
|
24
|
+
LOCAL_AUTH_MODELS.user,
|
|
28
25
|
getNewAction: () => ({ type: 'reset-password', position: 'dropdown' }),
|
|
29
26
|
});
|
|
30
27
|
adminCrudColumnWeb.registerColumnWebConfig({
|
|
31
28
|
pluginKey,
|
|
32
29
|
name: 'roles',
|
|
33
30
|
label: 'Roles',
|
|
34
|
-
isAvailableForModel: (definition, modelId) =>
|
|
35
|
-
|
|
36
|
-
return modelId === pluginDefinition.modelRefs.user;
|
|
37
|
-
},
|
|
31
|
+
isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name ===
|
|
32
|
+
LOCAL_AUTH_MODELS.user,
|
|
38
33
|
getNewColumn: () => ({ type: 'roles', label: 'Roles' }),
|
|
39
34
|
});
|
|
40
35
|
return {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/local-auth/admin/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/local-auth/admin/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,UAAU,GACX,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE7E,eAAe,0BAA0B,CAAC;IACxC,YAAY,EAAE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O,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;SACxD,CAAC,CAAC;QACH,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const LOCAL_AUTH_MODELS: {
|
|
2
|
+
/**
|
|
3
|
+
* Model name for the user model that represents a user in the local auth system.
|
|
4
|
+
*/
|
|
5
|
+
readonly user: "User";
|
|
6
|
+
/**
|
|
7
|
+
* Model name for the user account model that represents a user account in the local auth system, e.g. email / password.
|
|
8
|
+
*/
|
|
9
|
+
readonly userAccount: "UserAccount";
|
|
10
|
+
/**
|
|
11
|
+
* Model name for the user role model that represents a user role in the local auth system.
|
|
12
|
+
*/
|
|
13
|
+
readonly userRole: "UserRole";
|
|
14
|
+
/**
|
|
15
|
+
* Model name for the user session model that represents a user session in the local auth system.
|
|
16
|
+
*/
|
|
17
|
+
readonly userSession: "UserSession";
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=model-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-names.d.ts","sourceRoot":"","sources":["../../../src/local-auth/constants/model-names.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;IAC5B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const LOCAL_AUTH_MODELS = {
|
|
2
|
+
/**
|
|
3
|
+
* Model name for the user model that represents a user in the local auth system.
|
|
4
|
+
*/
|
|
5
|
+
user: 'User',
|
|
6
|
+
/**
|
|
7
|
+
* Model name for the user account model that represents a user account in the local auth system, e.g. email / password.
|
|
8
|
+
*/
|
|
9
|
+
userAccount: 'UserAccount',
|
|
10
|
+
/**
|
|
11
|
+
* Model name for the user role model that represents a user role in the local auth system.
|
|
12
|
+
*/
|
|
13
|
+
userRole: 'UserRole',
|
|
14
|
+
/**
|
|
15
|
+
* Model name for the user session model that represents a user session in the local auth system.
|
|
16
|
+
*/
|
|
17
|
+
userSession: 'UserSession',
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=model-names.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-names.js","sourceRoot":"","sources":["../../../src/local-auth/constants/model-names.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,WAAW,EAAE,aAAa;IAC1B;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,WAAW,EAAE,aAAa;CAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/local-auth/core/common.ts"],"names":[],"mappings":"AAYA,YAAY,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;;;;;;AAE/E,
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/local-auth/core/common.ts"],"names":[],"mappings":"AAYA,YAAY,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;;;;;;AAE/E,wBAmBG"}
|