@daffodil/auth 0.47.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/README.md +14 -0
- package/daffodil-auth.d.ts +5 -0
- package/driver/daffodil-auth-driver.d.ts +5 -0
- package/driver/errors/authentication-failed.d.ts +6 -0
- package/driver/errors/codes.enum.d.ts +6 -0
- package/driver/errors/invalid-api-response.d.ts +6 -0
- package/driver/errors/map.d.ts +13 -0
- package/driver/errors/public_api.d.ts +6 -0
- package/driver/errors/registration-failed.d.ts +9 -0
- package/driver/errors/unauthorized.d.ts +6 -0
- package/driver/in-memory/backend/auth.service.d.ts +22 -0
- package/driver/in-memory/daffodil-auth-driver-in-memory.d.ts +5 -0
- package/driver/in-memory/drivers/auth/auth.service.d.ts +15 -0
- package/driver/in-memory/drivers/auth-driver.module.d.ts +9 -0
- package/driver/in-memory/drivers/login/login.service.d.ts +17 -0
- package/driver/in-memory/drivers/public_api.d.ts +4 -0
- package/driver/in-memory/drivers/register/register.service.d.ts +19 -0
- package/driver/in-memory/drivers/reset-password/service.d.ts +20 -0
- package/driver/in-memory/index.d.ts +1 -0
- package/driver/in-memory/models/db-customer.type.d.ts +8 -0
- package/driver/in-memory/package.json +10 -0
- package/driver/in-memory/public_api.d.ts +2 -0
- package/driver/index.d.ts +1 -0
- package/driver/interfaces/auth-service.interface.d.ts +9 -0
- package/driver/interfaces/login-service.interface.d.ts +16 -0
- package/driver/interfaces/public_api.d.ts +4 -0
- package/driver/interfaces/register-service.interface.d.ts +19 -0
- package/driver/interfaces/reset-password-service.interface.d.ts +18 -0
- package/driver/magento/apollo-bearer-token-link-generator.d.ts +16 -0
- package/driver/magento/auth-driver.module.d.ts +9 -0
- package/driver/magento/auth.service.d.ts +14 -0
- package/driver/magento/daffodil-auth-driver-magento.d.ts +5 -0
- package/driver/magento/errors/codes.d.ts +5 -0
- package/driver/magento/errors/map.d.ts +2 -0
- package/driver/magento/errors/transform.d.ts +1 -0
- package/driver/magento/index.d.ts +1 -0
- package/driver/magento/login.service.d.ts +18 -0
- package/driver/magento/models/public_api.d.ts +4 -0
- package/driver/magento/models/response/auth.d.ts +3 -0
- package/driver/magento/models/response/register.type.d.ts +7 -0
- package/driver/magento/models/response/reset-password.type.d.ts +3 -0
- package/driver/magento/models/response/send-reset-email.type.d.ts +3 -0
- package/driver/magento/package.json +10 -0
- package/driver/magento/public_api.d.ts +8 -0
- package/driver/magento/queries/check-token.d.ts +1 -0
- package/driver/magento/queries/create-customer.d.ts +1 -0
- package/driver/magento/queries/generate-token.d.ts +1 -0
- package/driver/magento/queries/public_api.d.ts +7 -0
- package/driver/magento/queries/reset-password.d.ts +1 -0
- package/driver/magento/queries/responses/check-token-response.d.ts +5 -0
- package/driver/magento/queries/responses/generate-token-response.d.ts +4 -0
- package/driver/magento/queries/responses/public_api.d.ts +3 -0
- package/driver/magento/queries/responses/revoke-customer-token-response.d.ts +5 -0
- package/driver/magento/queries/revoke-customer-token.d.ts +1 -0
- package/driver/magento/queries/send-reset-email.d.ts +1 -0
- package/driver/magento/register.service.d.ts +18 -0
- package/driver/magento/reset-password.service.d.ts +19 -0
- package/driver/magento/transforms/auth-transformer.service.d.ts +16 -0
- package/driver/magento/validators/check-token.d.ts +3 -0
- package/driver/magento/validators/generate-token.d.ts +3 -0
- package/driver/magento/validators/public_api.d.ts +5 -0
- package/driver/magento/validators/reset-password.d.ts +3 -0
- package/driver/magento/validators/revoke-token.d.ts +3 -0
- package/driver/magento/validators/send-reset-email.d.ts +3 -0
- package/driver/package.json +10 -0
- package/driver/public_api.d.ts +2 -0
- package/driver/testing/daffodil-auth-driver-testing.d.ts +5 -0
- package/driver/testing/drivers/auth/auth.service.d.ts +11 -0
- package/driver/testing/drivers/auth-driver.module.d.ts +9 -0
- package/driver/testing/drivers/login/login.service.d.ts +16 -0
- package/driver/testing/drivers/public_api.d.ts +4 -0
- package/driver/testing/drivers/register/register.service.d.ts +16 -0
- package/driver/testing/drivers/reset-password/service.d.ts +17 -0
- package/driver/testing/index.d.ts +1 -0
- package/driver/testing/package.json +10 -0
- package/driver/testing/public_api.d.ts +1 -0
- package/esm2020/daffodil-auth.mjs +5 -0
- package/esm2020/driver/daffodil-auth-driver.mjs +5 -0
- package/esm2020/driver/errors/authentication-failed.mjs +10 -0
- package/esm2020/driver/errors/codes.enum.mjs +8 -0
- package/esm2020/driver/errors/invalid-api-response.mjs +10 -0
- package/esm2020/driver/errors/map.mjs +15 -0
- package/esm2020/driver/errors/public_api.mjs +7 -0
- package/esm2020/driver/errors/registration-failed.mjs +13 -0
- package/esm2020/driver/errors/unauthorized.mjs +10 -0
- package/esm2020/driver/in-memory/backend/auth.service.mjs +109 -0
- package/esm2020/driver/in-memory/daffodil-auth-driver-in-memory.mjs +5 -0
- package/esm2020/driver/in-memory/drivers/auth/auth.service.mjs +26 -0
- package/esm2020/driver/in-memory/drivers/auth-driver.module.mjs +47 -0
- package/esm2020/driver/in-memory/drivers/login/login.service.mjs +30 -0
- package/esm2020/driver/in-memory/drivers/public_api.mjs +5 -0
- package/esm2020/driver/in-memory/drivers/register/register.service.mjs +32 -0
- package/esm2020/driver/in-memory/drivers/reset-password/service.mjs +35 -0
- package/esm2020/driver/in-memory/index.mjs +2 -0
- package/esm2020/driver/in-memory/models/db-customer.type.mjs +2 -0
- package/esm2020/driver/in-memory/public_api.mjs +3 -0
- package/esm2020/driver/index.mjs +2 -0
- package/esm2020/driver/interfaces/auth-service.interface.mjs +3 -0
- package/esm2020/driver/interfaces/login-service.interface.mjs +3 -0
- package/esm2020/driver/interfaces/public_api.mjs +5 -0
- package/esm2020/driver/interfaces/register-service.interface.mjs +3 -0
- package/esm2020/driver/interfaces/reset-password-service.interface.mjs +3 -0
- package/esm2020/driver/magento/apollo-bearer-token-link-generator.mjs +38 -0
- package/esm2020/driver/magento/auth-driver.module.mjs +47 -0
- package/esm2020/driver/magento/auth.service.mjs +29 -0
- package/esm2020/driver/magento/daffodil-auth-driver-magento.mjs +5 -0
- package/esm2020/driver/magento/errors/codes.mjs +7 -0
- package/esm2020/driver/magento/errors/map.mjs +9 -0
- package/esm2020/driver/magento/errors/transform.mjs +4 -0
- package/esm2020/driver/magento/index.mjs +2 -0
- package/esm2020/driver/magento/login.service.mjs +41 -0
- package/esm2020/driver/magento/models/public_api.mjs +2 -0
- package/esm2020/driver/magento/models/response/auth.mjs +2 -0
- package/esm2020/driver/magento/models/response/register.type.mjs +2 -0
- package/esm2020/driver/magento/models/response/reset-password.type.mjs +2 -0
- package/esm2020/driver/magento/models/response/send-reset-email.type.mjs +2 -0
- package/esm2020/driver/magento/public_api.mjs +9 -0
- package/esm2020/driver/magento/queries/check-token.mjs +9 -0
- package/esm2020/driver/magento/queries/create-customer.mjs +21 -0
- package/esm2020/driver/magento/queries/generate-token.mjs +12 -0
- package/esm2020/driver/magento/queries/public_api.mjs +8 -0
- package/esm2020/driver/magento/queries/reset-password.mjs +11 -0
- package/esm2020/driver/magento/queries/responses/check-token-response.mjs +2 -0
- package/esm2020/driver/magento/queries/responses/generate-token-response.mjs +2 -0
- package/esm2020/driver/magento/queries/responses/public_api.mjs +2 -0
- package/esm2020/driver/magento/queries/responses/revoke-customer-token-response.mjs +2 -0
- package/esm2020/driver/magento/queries/revoke-customer-token.mjs +9 -0
- package/esm2020/driver/magento/queries/send-reset-email.mjs +9 -0
- package/esm2020/driver/magento/register.service.mjs +48 -0
- package/esm2020/driver/magento/reset-password.service.mjs +50 -0
- package/esm2020/driver/magento/transforms/auth-transformer.service.mjs +26 -0
- package/esm2020/driver/magento/validators/check-token.mjs +10 -0
- package/esm2020/driver/magento/validators/generate-token.mjs +10 -0
- package/esm2020/driver/magento/validators/public_api.mjs +6 -0
- package/esm2020/driver/magento/validators/reset-password.mjs +10 -0
- package/esm2020/driver/magento/validators/revoke-token.mjs +10 -0
- package/esm2020/driver/magento/validators/send-reset-email.mjs +10 -0
- package/esm2020/driver/public_api.mjs +3 -0
- package/esm2020/driver/testing/daffodil-auth-driver-testing.mjs +5 -0
- package/esm2020/driver/testing/drivers/auth/auth.service.mjs +20 -0
- package/esm2020/driver/testing/drivers/auth-driver.module.mjs +47 -0
- package/esm2020/driver/testing/drivers/login/login.service.mjs +28 -0
- package/esm2020/driver/testing/drivers/public_api.mjs +5 -0
- package/esm2020/driver/testing/drivers/register/register.service.mjs +28 -0
- package/esm2020/driver/testing/drivers/reset-password/service.mjs +31 -0
- package/esm2020/driver/testing/index.mjs +2 -0
- package/esm2020/driver/testing/public_api.mjs +2 -0
- package/esm2020/index.mjs +2 -0
- package/esm2020/injection-tokens/error-matcher.token.mjs +8 -0
- package/esm2020/injection-tokens/public_api.mjs +2 -0
- package/esm2020/models/account-registration.mjs +2 -0
- package/esm2020/models/auth-token.mjs +2 -0
- package/esm2020/models/login-info.mjs +2 -0
- package/esm2020/models/public_api.mjs +2 -0
- package/esm2020/models/reset-password-info.type.mjs +2 -0
- package/esm2020/public_api.mjs +4 -0
- package/esm2020/routing/config/default.mjs +4 -0
- package/esm2020/routing/config/interface.mjs +2 -0
- package/esm2020/routing/config/public_api.mjs +3 -0
- package/esm2020/routing/config/token.mjs +9 -0
- package/esm2020/routing/daffodil-auth-routing.mjs +5 -0
- package/esm2020/routing/guards/guest-only-guard-redirect.token.mjs +3 -0
- package/esm2020/routing/guards/guest-only.guard.mjs +42 -0
- package/esm2020/routing/guards/member-only-guard-redirect.token.mjs +3 -0
- package/esm2020/routing/guards/member-only.guard.mjs +42 -0
- package/esm2020/routing/guards/public_api.mjs +6 -0
- package/esm2020/routing/guards/reset-password.guard.mjs +32 -0
- package/esm2020/routing/index.mjs +2 -0
- package/esm2020/routing/module.mjs +35 -0
- package/esm2020/routing/public_api.mjs +4 -0
- package/esm2020/state/actions/auth.actions.mjs +75 -0
- package/esm2020/state/actions/login.actions.mjs +70 -0
- package/esm2020/state/actions/public_api.mjs +5 -0
- package/esm2020/state/actions/register.actions.mjs +41 -0
- package/esm2020/state/actions/reset-password.actions.mjs +79 -0
- package/esm2020/state/auth-state.module.mjs +48 -0
- package/esm2020/state/config/default.mjs +5 -0
- package/esm2020/state/config/public_api.mjs +3 -0
- package/esm2020/state/config/token.mjs +8 -0
- package/esm2020/state/config/type.mjs +2 -0
- package/esm2020/state/daffodil-auth-state.mjs +5 -0
- package/esm2020/state/effects/auth.effects.mjs +45 -0
- package/esm2020/state/effects/login.effects.mjs +37 -0
- package/esm2020/state/effects/register.effects.mjs +31 -0
- package/esm2020/state/effects/reset-password.effects.mjs +32 -0
- package/esm2020/state/facades/auth/facade.interface.mjs +2 -0
- package/esm2020/state/facades/auth/facade.mjs +28 -0
- package/esm2020/state/facades/auth/public_api.mjs +2 -0
- package/esm2020/state/facades/login/facade.interface.mjs +2 -0
- package/esm2020/state/facades/login/facade.mjs +28 -0
- package/esm2020/state/facades/login/public_api.mjs +2 -0
- package/esm2020/state/facades/public_api.mjs +5 -0
- package/esm2020/state/facades/register/facade.interface.mjs +2 -0
- package/esm2020/state/facades/register/facade.mjs +28 -0
- package/esm2020/state/facades/register/public_api.mjs +2 -0
- package/esm2020/state/facades/reset-password/facade.interface.mjs +2 -0
- package/esm2020/state/facades/reset-password/facade.mjs +29 -0
- package/esm2020/state/facades/reset-password/public_api.mjs +2 -0
- package/esm2020/state/index.mjs +2 -0
- package/esm2020/state/public_api.mjs +7 -0
- package/esm2020/state/reducers/auth/auth-initial-state.mjs +5 -0
- package/esm2020/state/reducers/auth/auth-reducer-state.interface.mjs +2 -0
- package/esm2020/state/reducers/auth/auth.reducer.mjs +25 -0
- package/esm2020/state/reducers/auth/public_api.mjs +3 -0
- package/esm2020/state/reducers/auth-feature-state.interface.mjs +2 -0
- package/esm2020/state/reducers/auth-reducers.mjs +11 -0
- package/esm2020/state/reducers/auth-store-feature-key.mjs +2 -0
- package/esm2020/state/reducers/login/login-initial-state.mjs +5 -0
- package/esm2020/state/reducers/login/login-reducer-state.interface.mjs +2 -0
- package/esm2020/state/reducers/login/login.reducer.mjs +28 -0
- package/esm2020/state/reducers/login/public_api.mjs +3 -0
- package/esm2020/state/reducers/public_api.mjs +7 -0
- package/esm2020/state/reducers/register/public_api.mjs +3 -0
- package/esm2020/state/reducers/register/register-initial-state.mjs +5 -0
- package/esm2020/state/reducers/register/register-reducer-state.interface.mjs +2 -0
- package/esm2020/state/reducers/register/register.reducer.mjs +25 -0
- package/esm2020/state/reducers/reset-password/initial-state.mjs +6 -0
- package/esm2020/state/reducers/reset-password/public_api.mjs +3 -0
- package/esm2020/state/reducers/reset-password/reducer.mjs +33 -0
- package/esm2020/state/reducers/reset-password/state.interface.mjs +2 -0
- package/esm2020/state/selectors/auth/auth.selector.mjs +17 -0
- package/esm2020/state/selectors/auth-all.selector.mjs +16 -0
- package/esm2020/state/selectors/auth-feature.selector.mjs +10 -0
- package/esm2020/state/selectors/login/login.selector.mjs +17 -0
- package/esm2020/state/selectors/public_api.mjs +2 -0
- package/esm2020/state/selectors/register/register.selector.mjs +17 -0
- package/esm2020/state/selectors/reset-password/selector.mjs +19 -0
- package/esm2020/state/testing/auth-testing.module.mjs +29 -0
- package/esm2020/state/testing/daffodil-auth-state-testing.mjs +5 -0
- package/esm2020/state/testing/index.mjs +2 -0
- package/esm2020/state/testing/mock-auth-facade.mjs +21 -0
- package/esm2020/state/testing/mock-login-facade.mjs +21 -0
- package/esm2020/state/testing/mock-register-facade.mjs +21 -0
- package/esm2020/state/testing/mock-reset-password-facade.mjs +22 -0
- package/esm2020/state/testing/public_api.mjs +6 -0
- package/esm2020/storage/auth-storage.service.mjs +30 -0
- package/esm2020/testing/daffodil-auth-testing.mjs +5 -0
- package/esm2020/testing/factories/account-registration.factory.mjs +25 -0
- package/esm2020/testing/factories/auth-token.factory.mjs +24 -0
- package/esm2020/testing/factories/public_api.mjs +4 -0
- package/esm2020/testing/factories/reset-password-info.factory.mjs +26 -0
- package/esm2020/testing/index.mjs +2 -0
- package/esm2020/testing/public_api.mjs +2 -0
- package/fesm2015/daffodil-auth-driver-in-memory.mjs +258 -0
- package/fesm2015/daffodil-auth-driver-in-memory.mjs.map +1 -0
- package/fesm2015/daffodil-auth-driver-magento.mjs +363 -0
- package/fesm2015/daffodil-auth-driver-magento.mjs.map +1 -0
- package/fesm2015/daffodil-auth-driver-testing.mjs +141 -0
- package/fesm2015/daffodil-auth-driver-testing.mjs.map +1 -0
- package/fesm2015/daffodil-auth-driver.mjs +70 -0
- package/fesm2015/daffodil-auth-driver.mjs.map +1 -0
- package/fesm2015/daffodil-auth-routing.mjs +158 -0
- package/fesm2015/daffodil-auth-routing.mjs.map +1 -0
- package/fesm2015/daffodil-auth-state-testing.mjs +106 -0
- package/fesm2015/daffodil-auth-state-testing.mjs.map +1 -0
- package/fesm2015/daffodil-auth-state.mjs +700 -0
- package/fesm2015/daffodil-auth-state.mjs.map +1 -0
- package/fesm2015/daffodil-auth-testing.mjs +74 -0
- package/fesm2015/daffodil-auth-testing.mjs.map +1 -0
- package/fesm2015/daffodil-auth.mjs +46 -0
- package/fesm2015/daffodil-auth.mjs.map +1 -0
- package/fesm2020/daffodil-auth-driver-in-memory.mjs +258 -0
- package/fesm2020/daffodil-auth-driver-in-memory.mjs.map +1 -0
- package/fesm2020/daffodil-auth-driver-magento.mjs +366 -0
- package/fesm2020/daffodil-auth-driver-magento.mjs.map +1 -0
- package/fesm2020/daffodil-auth-driver-testing.mjs +141 -0
- package/fesm2020/daffodil-auth-driver-testing.mjs.map +1 -0
- package/fesm2020/daffodil-auth-driver.mjs +70 -0
- package/fesm2020/daffodil-auth-driver.mjs.map +1 -0
- package/fesm2020/daffodil-auth-routing.mjs +152 -0
- package/fesm2020/daffodil-auth-routing.mjs.map +1 -0
- package/fesm2020/daffodil-auth-state-testing.mjs +106 -0
- package/fesm2020/daffodil-auth-state-testing.mjs.map +1 -0
- package/fesm2020/daffodil-auth-state.mjs +741 -0
- package/fesm2020/daffodil-auth-state.mjs.map +1 -0
- package/fesm2020/daffodil-auth-testing.mjs +74 -0
- package/fesm2020/daffodil-auth-testing.mjs.map +1 -0
- package/fesm2020/daffodil-auth.mjs +44 -0
- package/fesm2020/daffodil-auth.mjs.map +1 -0
- package/index.d.ts +1 -0
- package/injection-tokens/error-matcher.token.d.ts +7 -0
- package/injection-tokens/public_api.d.ts +1 -0
- package/models/account-registration.d.ts +2 -0
- package/models/auth-token.d.ts +3 -0
- package/models/login-info.d.ts +4 -0
- package/models/public_api.d.ts +4 -0
- package/models/reset-password-info.type.d.ts +14 -0
- package/package.json +115 -0
- package/public_api.d.ts +3 -0
- package/routing/config/default.d.ts +2 -0
- package/routing/config/interface.d.ts +9 -0
- package/routing/config/public_api.d.ts +3 -0
- package/routing/config/token.d.ts +6 -0
- package/routing/daffodil-auth-routing.d.ts +5 -0
- package/routing/guards/guest-only-guard-redirect.token.d.ts +2 -0
- package/routing/guards/guest-only.guard.d.ts +16 -0
- package/routing/guards/member-only-guard-redirect.token.d.ts +2 -0
- package/routing/guards/member-only.guard.d.ts +16 -0
- package/routing/guards/public_api.d.ts +5 -0
- package/routing/guards/reset-password.guard.d.ts +13 -0
- package/routing/index.d.ts +1 -0
- package/routing/module.d.ts +9 -0
- package/routing/package.json +10 -0
- package/routing/public_api.d.ts +3 -0
- package/state/actions/auth.actions.d.ts +62 -0
- package/state/actions/login.actions.d.ts +64 -0
- package/state/actions/public_api.d.ts +4 -0
- package/state/actions/register.actions.d.ts +40 -0
- package/state/actions/reset-password.actions.d.ts +72 -0
- package/state/auth-state.module.d.ts +11 -0
- package/state/config/default.d.ts +2 -0
- package/state/config/public_api.d.ts +3 -0
- package/state/config/token.d.ts +4 -0
- package/state/config/type.d.ts +7 -0
- package/state/daffodil-auth-state.d.ts +5 -0
- package/state/effects/auth.effects.d.ts +21 -0
- package/state/effects/login.effects.d.ts +19 -0
- package/state/effects/register.effects.d.ts +16 -0
- package/state/effects/reset-password.effects.d.ts +18 -0
- package/state/facades/auth/facade.d.ts +19 -0
- package/state/facades/auth/facade.interface.d.ts +8 -0
- package/state/facades/auth/public_api.d.ts +2 -0
- package/state/facades/login/facade.d.ts +18 -0
- package/state/facades/login/facade.interface.d.ts +8 -0
- package/state/facades/login/public_api.d.ts +2 -0
- package/state/facades/public_api.d.ts +4 -0
- package/state/facades/register/facade.d.ts +18 -0
- package/state/facades/register/facade.interface.d.ts +8 -0
- package/state/facades/register/public_api.d.ts +2 -0
- package/state/facades/reset-password/facade.d.ts +20 -0
- package/state/facades/reset-password/facade.interface.d.ts +10 -0
- package/state/facades/reset-password/public_api.d.ts +2 -0
- package/state/index.d.ts +1 -0
- package/state/package.json +10 -0
- package/state/public_api.d.ts +6 -0
- package/state/reducers/auth/auth-initial-state.d.ts +2 -0
- package/state/reducers/auth/auth-reducer-state.interface.d.ts +5 -0
- package/state/reducers/auth/auth.reducer.d.ts +3 -0
- package/state/reducers/auth/public_api.d.ts +3 -0
- package/state/reducers/auth-feature-state.interface.d.ts +14 -0
- package/state/reducers/auth-reducers.d.ts +3 -0
- package/state/reducers/auth-store-feature-key.d.ts +1 -0
- package/state/reducers/login/login-initial-state.d.ts +2 -0
- package/state/reducers/login/login-reducer-state.interface.d.ts +5 -0
- package/state/reducers/login/login.reducer.d.ts +4 -0
- package/state/reducers/login/public_api.d.ts +3 -0
- package/state/reducers/public_api.d.ts +7 -0
- package/state/reducers/register/public_api.d.ts +3 -0
- package/state/reducers/register/register-initial-state.d.ts +2 -0
- package/state/reducers/register/register-reducer-state.interface.d.ts +5 -0
- package/state/reducers/register/register.reducer.d.ts +4 -0
- package/state/reducers/reset-password/initial-state.d.ts +2 -0
- package/state/reducers/reset-password/public_api.d.ts +3 -0
- package/state/reducers/reset-password/reducer.d.ts +4 -0
- package/state/reducers/reset-password/state.interface.d.ts +7 -0
- package/state/selectors/auth/auth.selector.d.ts +10 -0
- package/state/selectors/auth-all.selector.d.ts +10 -0
- package/state/selectors/auth-feature.selector.d.ts +6 -0
- package/state/selectors/login/login.selector.d.ts +9 -0
- package/state/selectors/public_api.d.ts +1 -0
- package/state/selectors/register/register.selector.d.ts +10 -0
- package/state/selectors/reset-password/selector.d.ts +11 -0
- package/state/testing/auth-testing.module.d.ts +6 -0
- package/state/testing/daffodil-auth-state-testing.d.ts +5 -0
- package/state/testing/index.d.ts +1 -0
- package/state/testing/mock-auth-facade.d.ts +15 -0
- package/state/testing/mock-login-facade.d.ts +15 -0
- package/state/testing/mock-register-facade.d.ts +15 -0
- package/state/testing/mock-reset-password-facade.d.ts +16 -0
- package/state/testing/package.json +10 -0
- package/state/testing/public_api.d.ts +5 -0
- package/storage/auth-storage.service.d.ts +12 -0
- package/testing/daffodil-auth-testing.d.ts +5 -0
- package/testing/factories/account-registration.factory.d.ts +12 -0
- package/testing/factories/auth-token.factory.d.ts +11 -0
- package/testing/factories/public_api.d.ts +3 -0
- package/testing/factories/reset-password-info.factory.d.ts +13 -0
- package/testing/index.d.ts +1 -0
- package/testing/package.json +10 -0
- package/testing/public_api.d.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"daffodil-auth-state.mjs","sources":["../../../libs/auth/state/src/actions/auth.actions.ts","../../../libs/auth/state/src/actions/login.actions.ts","../../../libs/auth/state/src/actions/register.actions.ts","../../../libs/auth/state/src/actions/reset-password.actions.ts","../../../libs/auth/state/src/reducers/auth/auth-initial-state.ts","../../../libs/auth/state/src/reducers/auth/auth.reducer.ts","../../../libs/auth/state/src/reducers/login/login-initial-state.ts","../../../libs/auth/state/src/reducers/login/login.reducer.ts","../../../libs/auth/state/src/reducers/register/register-initial-state.ts","../../../libs/auth/state/src/reducers/register/register.reducer.ts","../../../libs/auth/state/src/reducers/reset-password/initial-state.ts","../../../libs/auth/state/src/reducers/reset-password/reducer.ts","../../../libs/auth/state/src/reducers/auth-store-feature-key.ts","../../../libs/auth/state/src/reducers/auth-reducers.ts","../../../libs/auth/state/src/selectors/auth-feature.selector.ts","../../../libs/auth/state/src/selectors/auth/auth.selector.ts","../../../libs/auth/state/src/selectors/login/login.selector.ts","../../../libs/auth/state/src/selectors/register/register.selector.ts","../../../libs/auth/state/src/selectors/reset-password/selector.ts","../../../libs/auth/state/src/selectors/auth-all.selector.ts","../../../libs/auth/state/src/facades/auth/facade.ts","../../../libs/auth/state/src/facades/login/facade.ts","../../../libs/auth/state/src/facades/register/facade.ts","../../../libs/auth/state/src/facades/reset-password/facade.ts","../../../libs/auth/state/src/config/default.ts","../../../libs/auth/state/src/config/token.ts","../../../libs/auth/state/src/effects/auth.effects.ts","../../../libs/auth/state/src/effects/login.effects.ts","../../../libs/auth/state/src/effects/register.effects.ts","../../../libs/auth/state/src/effects/reset-password.effects.ts","../../../libs/auth/state/src/auth-state.module.ts","../../../libs/auth/state/src/daffodil-auth-state.ts"],"sourcesContent":["import { Action } from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthActionTypes {\n AuthGuardCheckAction = '[@daffodil/auth] Auth Guard Check Action',\n AuthGuardCheckCompletionAction = '[@daffodil/auth] Auth Guard Check Completion Action',\n AuthStorageFailureAction = '[@daffodil/auth] Auth Storage Failure Action',\n AuthCheckAction = '[@daffodil/auth] Auth Check Action',\n AuthCheckSuccessAction = '[@daffodil/auth] Auth Check Success Action',\n AuthCheckFailureAction = '[@daffodil/auth] Auth Check Failure Action',\n AuthCompleteAction = '[@daffodil/auth] Auth Complete Action',\n}\n\n/**\n * An action triggered by guards to initialize an auth check request.\n */\nexport class DaffAuthGuardCheck implements Action {\n readonly type = DaffAuthActionTypes.AuthGuardCheckAction;\n}\n\n/**\n * An action triggered on the completion of a guard token check.\n */\nexport class DaffAuthGuardCheckCompletion implements Action {\n readonly type = DaffAuthActionTypes.AuthGuardCheckCompletionAction;\n\n constructor(public result: boolean) {}\n}\n\n/*\n * An action triggered upon a failed auth storage operation.\n */\nexport class DaffAuthStorageFailure implements Action {\n readonly type = DaffAuthActionTypes.AuthStorageFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n\n/**\n * An action triggered to initialize an auth check request.\n */\nexport class DaffAuthCheck implements Action {\n readonly type = DaffAuthActionTypes.AuthCheckAction;\n}\n\n/**\n * An action triggered upon a successful auth check.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthCheckSuccess implements Action {\n readonly type = DaffAuthActionTypes.AuthCheckSuccessAction;\n}\n\n/**\n * An action triggered upon a failed auth check request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthCheckFailure implements Action {\n readonly type = DaffAuthActionTypes.AuthCheckFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered when the user authentication flow is completed.\n * The auth token is in storage at this point.\n */\nexport class DaffAuthComplete implements Action {\n readonly type = DaffAuthActionTypes.AuthCompleteAction;\n}\n\nexport type DaffAuthActions =\n | DaffAuthGuardCheckCompletion\n | DaffAuthGuardCheck\n | DaffAuthStorageFailure\n | DaffAuthCheck\n | DaffAuthCheckSuccess\n | DaffAuthCheckFailure\n | DaffAuthComplete;\n","import { Action } from '@ngrx/store';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthLoginActionTypes {\n LoginAction = '[@daffodil/auth] Login Action',\n LoginSuccessAction = '[@daffodil/auth] Login Success Action',\n LoginFailureAction = '[@daffodil/auth] Login Failure Action',\n LogoutAction = '[@daffodil/auth] Logout Action',\n LogoutSuccessAction = '[@daffodil/auth] Logout Success Action',\n LogoutFailureAction = '[@daffodil/auth] Logout Failure Action',\n}\n\n/**\n * An action triggered to initialize a auth login request.\n */\nexport class DaffAuthLogin<T extends DaffLoginInfo = DaffLoginInfo> implements Action {\n readonly type = DaffAuthLoginActionTypes.LoginAction;\n\n constructor(public loginInfo: T) {}\n}\n\n/**\n * An action triggered upon a successful auth login.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthLoginSuccess<T extends DaffAuthToken = DaffAuthToken> implements Action {\n readonly type = DaffAuthLoginActionTypes.LoginSuccessAction;\n\n constructor(public auth: T) {}\n}\n\n/**\n * An action triggered upon a failed auth login request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthLoginFailure implements Action {\n readonly type = DaffAuthLoginActionTypes.LoginFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered to initialize a logout request.\n */\nexport class DaffAuthLogout implements Action {\n readonly type = DaffAuthLoginActionTypes.LogoutAction;\n}\n\n/**\n * An action triggered upon a successful logout.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthLogoutSuccess implements Action {\n readonly type = DaffAuthLoginActionTypes.LogoutSuccessAction;\n}\n\n/**\n * An action triggered upon a failed logout request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthLogoutFailure implements Action {\n readonly type = DaffAuthLoginActionTypes.LogoutFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\nexport type DaffAuthLoginActions<\n T extends DaffLoginInfo = DaffLoginInfo,\n U extends DaffAuthToken = DaffAuthToken,\n> =\n | DaffAuthLogin<T>\n | DaffAuthLoginSuccess<U>\n | DaffAuthLoginFailure\n | DaffAuthLogout\n | DaffAuthLogoutSuccess\n | DaffAuthLogoutFailure;\n","import { Action } from '@ngrx/store';\n\nimport { DaffAccountRegistration } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthRegisterActionTypes {\n RegisterAction = '[@daffodil/auth] Register Action',\n RegisterSuccessAction = '[@daffodil/auth] Register Success Action',\n RegisterFailureAction = '[@daffodil/auth] Register Failure Action',\n}\n\n/**\n * An action triggered to initialize a auth register request.\n *\n * @param registration\n */\nexport class DaffAuthRegister<T extends DaffAccountRegistration = DaffAccountRegistration> implements Action {\n readonly type = DaffAuthRegisterActionTypes.RegisterAction;\n\n constructor(public registration: T, public autoLogin = true) {}\n}\n\n/**\n * An action triggered upon a successful auth register request.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthRegisterSuccess implements Action {\n readonly type = DaffAuthRegisterActionTypes.RegisterSuccessAction;\n\n constructor(public token?: string) {}\n}\n\n/**\n * An action triggered upon a failed auth request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthRegisterFailure implements Action {\n readonly type = DaffAuthRegisterActionTypes.RegisterFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\nexport type DaffAuthRegisterActions<\n T extends DaffAccountRegistration = DaffAccountRegistration,\n> =\n | DaffAuthRegister<T>\n | DaffAuthRegisterSuccess\n | DaffAuthRegisterFailure;\n","import { Action } from '@ngrx/store';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthResetPasswordActionTypes {\n SendResetEmailAction = '[@daffodil/auth] Send Reset Email Action',\n SendResetEmailSuccessAction = '[@daffodil/auth] Send Reset Email Success Action',\n SendResetEmailFailureAction = '[@daffodil/auth] Send Reset Email Failure Action',\n ResetPasswordAction = '[@daffodil/auth] Reset Password Action',\n ResetPasswordSuccessAction = '[@daffodil/auth] Reset Password Success Action',\n ResetPasswordFailureAction = '[@daffodil/auth] Reset Password Failure Action',\n ResetPasswordLandingAction = '[@daffodil/auth] Reset Password Landing Action',\n}\n\n/**\n * An action triggered to send the specified customer an email to reset their password.\n */\nexport class DaffSendResetEmail implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailAction;\n\n constructor(public email: string) {}\n}\n\n/**\n * An action triggered upon a successfully sent reset password email.\n */\nexport class DaffSendResetEmailSuccess implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailSuccessAction;\n}\n\n/**\n * An action triggered upon a failure to send the reset password email.\n *\n * @param errorMessage - an error message\n */\nexport class DaffSendResetEmailFailure implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered to initialize a logout request.\n */\nexport class DaffResetPassword<T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo> implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordAction;\n\n constructor(public info: T, public autoLogin = true) {}\n}\n\n/**\n * An action triggered upon a successful logout.\n */\nexport class DaffResetPasswordSuccess implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction;\n}\n\n/**\n * An action triggered upon a failed logout request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffResetPasswordFailure implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered upon the user navigating to the reset password page from the link in their email.\n *\n * @param token - The token with which the password can be reset\n */\nexport class DaffResetPasswordLanding implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordLandingAction;\n\n constructor(public token: DaffAuthResetPasswordInfo['token']) {}\n}\n\nexport type DaffAuthResetPasswordActions<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n> =\n | DaffSendResetEmail\n | DaffSendResetEmailSuccess\n | DaffSendResetEmailFailure\n | DaffResetPassword<T>\n | DaffResetPasswordSuccess\n | DaffResetPasswordFailure\n | DaffResetPasswordLanding;\n","import { DaffAuthReducerState } from './auth-reducer-state.interface';\n\nexport const daffAuthInitialState: DaffAuthReducerState = {\n loading: false,\n errors: [],\n};\n","import {\n DaffAuthActionTypes,\n DaffAuthActions,\n} from '../../actions/public_api';\nimport { daffAuthInitialState } from './auth-initial-state';\nimport { DaffAuthReducerState } from './auth-reducer-state.interface';\n\nexport function daffAuthReducer(\n state = daffAuthInitialState,\n action: DaffAuthActions,\n): DaffAuthReducerState {\n switch (action.type) {\n case DaffAuthActionTypes.AuthCheckAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthActionTypes.AuthCheckSuccessAction:\n return {\n ...state,\n loading: false,\n };\n\n case DaffAuthActionTypes.AuthCheckFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n default:\n return state;\n }\n}\n","import { DaffAuthLoginReducerState } from './login-reducer-state.interface';\n\nexport const daffAuthLoginInitialState: DaffAuthLoginReducerState = {\n loading: false,\n errors: [],\n};\n","import {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\n\nimport {\n DaffAuthLoginActionTypes,\n DaffAuthLoginActions,\n} from '../../actions/public_api';\nimport { daffAuthLoginInitialState } from './login-initial-state';\nimport { DaffAuthLoginReducerState } from './login-reducer-state.interface';\n\nexport function daffAuthLoginReducer<\n T extends DaffLoginInfo,\n U extends DaffAuthToken,\n>(\n state = daffAuthLoginInitialState,\n action: DaffAuthLoginActions<T, U>,\n): DaffAuthLoginReducerState {\n switch (action.type) {\n case DaffAuthLoginActionTypes.LoginAction:\n case DaffAuthLoginActionTypes.LogoutAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthLoginActionTypes.LoginSuccessAction:\n case DaffAuthLoginActionTypes.LogoutSuccessAction:\n return {\n ...state,\n loading: false,\n };\n\n case DaffAuthLoginActionTypes.LoginFailureAction:\n case DaffAuthLoginActionTypes.LogoutFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n default:\n return state;\n }\n}\n","import { DaffAuthRegisterReducerState } from './register-reducer-state.interface';\n\nexport const daffAuthRegisterInitialState: DaffAuthRegisterReducerState = {\n loading: false,\n errors: [],\n};\n","import { DaffAccountRegistration } from '@daffodil/auth';\n\nimport {\n DaffAuthRegisterActionTypes,\n DaffAuthRegisterActions,\n} from '../../actions/public_api';\nimport { daffAuthRegisterInitialState } from './register-initial-state';\nimport { DaffAuthRegisterReducerState } from './register-reducer-state.interface';\n\nexport function daffAuthRegisterReducer<\n T extends DaffAccountRegistration,\n>(\n state = daffAuthRegisterInitialState,\n action: DaffAuthRegisterActions<T>,\n): DaffAuthRegisterReducerState {\n switch (action.type) {\n case DaffAuthRegisterActionTypes.RegisterAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthRegisterActionTypes.RegisterSuccessAction:\n return {\n ...state,\n loading: false,\n };\n\n case DaffAuthRegisterActionTypes.RegisterFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n default:\n return state;\n }\n}\n","import { DaffAuthResetPasswordReducerState } from './state.interface';\n\nexport const daffAuthResetPasswordInitialState: DaffAuthResetPasswordReducerState = {\n loading: false,\n errors: [],\n token: null,\n};\n","import { DaffAuthResetPasswordInfo } from '@daffodil/auth';\n\nimport {\n DaffAuthResetPasswordActionTypes,\n DaffAuthResetPasswordActions,\n} from '../../actions/public_api';\nimport { daffAuthResetPasswordInitialState } from './initial-state';\nimport { DaffAuthResetPasswordReducerState } from './state.interface';\n\nexport function daffAuthResetPasswordReducer<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n>(\n state = daffAuthResetPasswordInitialState,\n action: DaffAuthResetPasswordActions<T>,\n): DaffAuthResetPasswordReducerState {\n switch (action.type) {\n case DaffAuthResetPasswordActionTypes.ResetPasswordAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailSuccessAction:\n return {\n ...state,\n loading: false,\n };\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordFailureAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordLandingAction:\n return {\n ...state,\n token: action.token,\n };\n\n default:\n return state;\n }\n}\n","export const DAFF_AUTH_STORE_FEATURE_KEY = 'daffAuth';\n","import { ActionReducerMap } from '@ngrx/store';\n\nimport { DaffAuthFeatureState } from './auth-feature-state.interface';\nimport { daffAuthReducer } from './auth/public_api';\nimport { daffAuthLoginReducer } from './login/public_api';\nimport { daffAuthRegisterReducer } from './register/public_api';\nimport { daffAuthResetPasswordReducer } from './reset-password/public_api';\n\nexport const daffAuthReducers: ActionReducerMap<DaffAuthFeatureState> = {\n auth: daffAuthReducer,\n login: daffAuthLoginReducer,\n register: daffAuthRegisterReducer,\n resetPassword: daffAuthResetPasswordReducer,\n};\n","import {\n createFeatureSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport {\n DaffAuthFeatureState,\n DAFF_AUTH_STORE_FEATURE_KEY,\n} from '../reducers/public_api';\n\n/**\n * Feature State Selector\n */\nexport const getDaffAuthFeatureStateSelector = (() => {\n let cache;\n return (): MemoizedSelector<Record<string, any>, DaffAuthFeatureState> =>\n cache = cache || createFeatureSelector<DaffAuthFeatureState>(DAFF_AUTH_STORE_FEATURE_KEY);\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffAuthToken } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface AuthSelectors {\n selectAuthState: MemoizedSelector<Record<string, any>, DaffAuthReducerState>;\n selectAuthLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n}\n\nconst createAuthSelectors = <T extends DaffAuthToken = DaffAuthToken>() => {\n const selectAuthState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.auth,\n );\n\n const selectAuthLoading = createSelector(\n selectAuthState,\n state => state.loading,\n );\n\n const selectAuthErrors = createSelector(\n selectAuthState,\n state => state.errors,\n );\n\n return {\n selectAuthState,\n selectAuthLoading,\n selectAuthErrors,\n };\n};\n\nexport const getAuthSelectors = (() => {\n let cache;\n return <T extends DaffAuthToken = DaffAuthToken>(): AuthSelectors =>\n cache = cache || createAuthSelectors<T>();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthLoginReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthLoginSelectors {\n selectAuthLoginState: MemoizedSelector<Record<string, any>, DaffAuthLoginReducerState>;\n selectAuthLoginLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthLoginErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n}\n\nconst createLoginSelectors = () => {\n const selectAuthLoginState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.login,\n );\n\n const selectAuthLoginLoading = createSelector(\n selectAuthLoginState,\n state => state.loading,\n );\n\n const selectAuthLoginErrors = createSelector(\n selectAuthLoginState,\n state => state.errors,\n );\n\n return {\n selectAuthLoginState,\n selectAuthLoginLoading,\n selectAuthLoginErrors,\n };\n};\n\nexport const getDaffAuthLoginSelectors = (() => {\n let cache;\n return (): DaffAuthLoginSelectors =>\n cache = cache || createLoginSelectors();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffAuthToken } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthRegisterReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthRegisterSelectors {\n selectAuthRegisterState: MemoizedSelector<Record<string, any>, DaffAuthRegisterReducerState>;\n selectAuthRegisterLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthRegisterErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n}\n\nconst createRegisterSelectors = <T extends DaffAuthToken = DaffAuthToken>() => {\n const selectAuthRegisterState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.register,\n );\n\n const selectAuthRegisterLoading = createSelector(\n selectAuthRegisterState,\n state => state.loading,\n );\n\n const selectAuthRegisterErrors = createSelector(\n selectAuthRegisterState,\n state => state.errors,\n );\n\n return {\n selectAuthRegisterState,\n selectAuthRegisterLoading,\n selectAuthRegisterErrors,\n };\n};\n\nexport const getDaffAuthRegisterSelectors = (() => {\n let cache;\n return <T extends DaffAuthToken = DaffAuthToken>(): DaffAuthRegisterSelectors =>\n cache = cache || createRegisterSelectors<T>();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthResetPasswordReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthResetPasswordSelectors {\n selectAuthResetPasswordState: MemoizedSelector<Record<string, any>, DaffAuthResetPasswordReducerState>;\n selectAuthResetPasswordLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthResetPasswordErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n selectAuthResetPasswordToken: MemoizedSelector<Record<string, any>, DaffAuthResetPasswordInfo['token']>;\n}\n\nconst createResetPasswordSelectors = (): DaffAuthResetPasswordSelectors => {\n const selectAuthResetPasswordState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.resetPassword,\n );\n\n const selectAuthResetPasswordLoading = createSelector(\n selectAuthResetPasswordState,\n state => state.loading,\n );\n\n const selectAuthResetPasswordErrors = createSelector(\n selectAuthResetPasswordState,\n state => state.errors,\n );\n\n const selectAuthResetPasswordToken = createSelector(\n selectAuthResetPasswordState,\n state => state.token,\n );\n\n return {\n selectAuthResetPasswordState,\n selectAuthResetPasswordLoading,\n selectAuthResetPasswordErrors,\n selectAuthResetPasswordToken,\n };\n};\n\nexport const getDaffAuthResetPasswordSelectors = (() => {\n let cache;\n return (): DaffAuthResetPasswordSelectors =>\n cache = cache || createResetPasswordSelectors();\n})();\n","import { MemoizedSelector } from '@ngrx/store';\n\nimport { DaffAuthFeatureState } from '../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from './auth-feature.selector';\nimport {\n getAuthSelectors,\n AuthSelectors,\n} from './auth/auth.selector';\nimport {\n getDaffAuthLoginSelectors,\n DaffAuthLoginSelectors,\n} from './login/login.selector';\nimport {\n getDaffAuthRegisterSelectors,\n DaffAuthRegisterSelectors,\n} from './register/register.selector';\nimport {\n DaffAuthResetPasswordSelectors,\n getDaffAuthResetPasswordSelectors,\n} from './reset-password/selector';\n\nexport interface DaffAuthSelectors extends\n DaffAuthRegisterSelectors,\n DaffAuthLoginSelectors,\n DaffAuthResetPasswordSelectors,\n AuthSelectors {\n selectAuthFeatureState: MemoizedSelector<Record<string, any>, DaffAuthFeatureState>;\n}\n\nexport const getDaffAuthSelectors = (() => {\n let cache;\n return (): DaffAuthSelectors =>\n cache = cache || {\n ...getAuthSelectors(),\n ...getDaffAuthLoginSelectors(),\n ...getDaffAuthRegisterSelectors(),\n ...getDaffAuthResetPasswordSelectors(),\n selectAuthFeatureState: getDaffAuthFeatureStateSelector(),\n };\n})();\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffAuthToken } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthFacade<T extends DaffAuthToken = DaffAuthToken> implements DaffAuthFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthLoading,\n selectAuthErrors,\n } = getDaffAuthSelectors();\n\n this.loading$ = this.store.pipe(select(selectAuthLoading));\n this.errors$ = this.store.pipe(select(selectAuthErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthLoginFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthLoginFacade implements DaffAuthLoginFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthLoginLoading,\n selectAuthLoginErrors,\n } = getDaffAuthSelectors();\n\n this.loading$ = this.store.pipe(select(selectAuthLoginLoading));\n this.errors$ = this.store.pipe(select(selectAuthLoginErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthRegisterFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthRegisterFacade implements DaffAuthRegisterFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthRegisterLoading,\n selectAuthRegisterErrors,\n } = getDaffAuthSelectors();\n\n this.loading$ = this.store.pipe(select(selectAuthRegisterLoading));\n this.errors$ = this.store.pipe(select(selectAuthRegisterErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthResetPasswordFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthResetPasswordFacade implements DaffAuthResetPasswordFacadeInterface {\n token$: Observable<DaffAuthResetPasswordInfo['token']>;\n\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthResetPasswordLoading,\n selectAuthResetPasswordErrors,\n selectAuthResetPasswordToken,\n } = getDaffAuthSelectors();\n\n this.token$ = this.store.pipe(select(selectAuthResetPasswordToken));\n\n this.loading$ = this.store.pipe(select(selectAuthResetPasswordLoading));\n this.errors$ = this.store.pipe(select(selectAuthResetPasswordErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { DaffAuthStateConfig } from './type';\n\nconst TWENTY_MINUTES = 1.2e6;\n\nexport const daffAuthStateDefaultConfig: DaffAuthStateConfig = {\n checkInterval: TWENTY_MINUTES,\n};\n","import {\n InjectionToken,\n ValueProvider,\n} from '@angular/core';\n\nimport { daffAuthStateDefaultConfig } from './default';\nimport { DaffAuthStateConfig } from './type';\n\nexport const DAFF_AUTH_STATE_CONFIG = new InjectionToken('DAFF_AUTH_STATE_CONFIG', { factory: () => daffAuthStateDefaultConfig });\n\nexport const provideDaffAuthStateConfig = (config: DaffAuthStateConfig): ValueProvider => ({\n provide: DAFF_AUTH_STATE_CONFIG,\n useValue: config,\n});\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n} from 'rxjs';\nimport {\n switchMap,\n catchError,\n map,\n repeat,\n filter,\n} from 'rxjs/operators';\n\nimport {\n DaffAuthStorageService,\n DAFF_AUTH_ERROR_MATCHER,\n} from '@daffodil/auth';\nimport {\n DaffAuthDriver,\n DaffAuthServiceInterface,\n} from '@daffodil/auth/driver';\nimport { DaffError } from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthActionTypes,\n DaffAuthCheckSuccess,\n DaffAuthCheckFailure,\n DaffAuthCheck,\n DaffAuthGuardCheckCompletion,\n DaffAuthGuardCheck,\n} from '../actions/public_api';\nimport {\n DaffAuthStateConfig,\n DAFF_AUTH_STATE_CONFIG,\n} from '../config/public_api';\n\n@Injectable()\nexport class DaffAuthEffects {\n constructor(\n private actions$: Actions,\n @Inject(DaffAuthDriver) private authDriver: DaffAuthServiceInterface,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n @Inject(DAFF_AUTH_STATE_CONFIG) private config: DaffAuthStateConfig,\n ) {}\n\n check$: Observable<DaffAuthCheckSuccess | DaffAuthCheckFailure> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthActionTypes.AuthCheckAction),\n switchMap((action: DaffAuthCheck) =>\n this.authDriver.check().pipe(\n map(() => new DaffAuthCheckSuccess()),\n catchError((error: DaffError) => {\n this.storage.removeAuthToken();\n return of(new DaffAuthCheckFailure(this.errorMatcher(error)));\n }),\n ),\n ),\n ));\n\n guardCheck$: Observable<DaffAuthGuardCheckCompletion> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthActionTypes.AuthGuardCheckAction),\n switchMap((action: DaffAuthGuardCheck) =>\n this.authDriver.check().pipe(\n map(() => new DaffAuthGuardCheckCompletion(true)),\n catchError((error: DaffError) => {\n this.storage.removeAuthToken();\n return of(new DaffAuthGuardCheckCompletion(false));\n }),\n ),\n ),\n ));\n\n // this needs to be defined after `check$` or else the driver call won't be run\n authCheckInterval$ = createEffect(() => of(new DaffAuthCheck()).pipe(\n repeat({ delay: this.config.checkInterval }),\n filter(() => !!this.storage.getAuthToken()),\n ));\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n EMPTY,\n} from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n DAFF_AUTH_ERROR_MATCHER,\n DaffAuthStorageService,\n} from '@daffodil/auth';\nimport {\n DaffLoginDriver,\n DaffLoginServiceInterface,\n} from '@daffodil/auth/driver';\nimport { DaffError } from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthLoginActionTypes,\n DaffAuthLogin,\n DaffAuthLoginSuccess,\n DaffAuthLoginFailure,\n DaffAuthLogoutSuccess,\n DaffAuthLogoutFailure,\n DaffAuthLogout,\n DaffAuthStorageFailure,\n DaffAuthComplete,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffAuthLoginEffects<\n T extends DaffLoginInfo = DaffLoginInfo,\n U extends DaffAuthToken = DaffAuthToken,\n> {\n constructor(\n private actions$: Actions,\n @Inject(DaffLoginDriver) private loginDriver: DaffLoginServiceInterface<T, U>,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n ) {}\n\n login$: Observable<DaffAuthLoginSuccess<U> | DaffAuthLoginFailure> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LoginAction),\n switchMap((action: DaffAuthLogin<T>) =>\n this.loginDriver.login(action.loginInfo).pipe(\n map((resp) =>\n new DaffAuthLoginSuccess<U>(resp),\n ),\n catchError((error: DaffError) =>\n of(new DaffAuthLoginFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n logout$: Observable<DaffAuthLogoutSuccess | DaffAuthLogoutFailure> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LogoutAction),\n switchMap((action: DaffAuthLogout) =>\n this.loginDriver.logout().pipe(\n map(() => new DaffAuthLogoutSuccess()),\n tap(() => {\n this.storage.removeAuthToken();\n }),\n catchError((error: DaffError) =>\n of(new DaffAuthLogoutFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n storeAuthToken$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LoginSuccessAction),\n tap((action: DaffAuthLoginSuccess<U>) => {\n this.storage.setAuthToken(action.auth.token);\n }),\n map(() => new DaffAuthComplete()),\n catchError((error: DaffError) => of(new DaffAuthStorageFailure(this.errorMatcher(error)))),\n ));\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n iif,\n defer,\n} from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffAccountRegistration,\n DaffAuthStorageService,\n DAFF_AUTH_ERROR_MATCHER,\n} from '@daffodil/auth';\nimport {\n DaffRegisterDriver,\n DaffRegisterServiceInterface,\n} from '@daffodil/auth/driver';\nimport { DaffError } from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthRegisterActionTypes,\n DaffAuthRegister,\n DaffAuthRegisterSuccess,\n DaffAuthRegisterFailure,\n DaffAuthComplete,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffAuthRegisterEffects<\n T extends DaffAccountRegistration = DaffAccountRegistration,\n> {\n constructor(\n private actions$: Actions,\n @Inject(DaffRegisterDriver) private registerDriver: DaffRegisterServiceInterface<T>,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n ) {}\n\n register$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthRegisterActionTypes.RegisterAction),\n switchMap((action: DaffAuthRegister<T>) =>\n iif(\n () => action.autoLogin,\n defer(() => this.registerDriver.register(action.registration).pipe(\n tap(token => this.storage.setAuthToken(token)),\n switchMap(() => of(new DaffAuthRegisterSuccess(), new DaffAuthComplete())),\n )),\n defer(() => this.registerDriver.registerOnly(action.registration).pipe(\n map(() => new DaffAuthRegisterSuccess()),\n )),\n ).pipe(\n catchError((error: DaffError) =>\n of(new DaffAuthRegisterFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n iif,\n defer,\n} from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DAFF_AUTH_ERROR_MATCHER,\n DaffAuthResetPasswordInfo,\n DaffAuthStorageService,\n} from '@daffodil/auth';\nimport {\n DaffResetPasswordDriver,\n DaffResetPasswordServiceInterface,\n} from '@daffodil/auth/driver';\nimport { DaffError } from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthResetPasswordActionTypes,\n DaffResetPassword,\n DaffResetPasswordSuccess,\n DaffResetPasswordFailure,\n DaffSendResetEmail,\n DaffSendResetEmailSuccess,\n DaffSendResetEmailFailure,\n DaffAuthComplete,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffAuthResetPasswordEffects<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n> {\n constructor(\n private actions$: Actions,\n @Inject(DaffResetPasswordDriver) private driver: DaffResetPasswordServiceInterface<T>,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n ) {}\n\n sendResetEmail$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthResetPasswordActionTypes.SendResetEmailAction),\n switchMap((action: DaffSendResetEmail) =>\n this.driver.sendResetEmail(action.email).pipe(\n map(() =>\n new DaffSendResetEmailSuccess(),\n ),\n catchError((error: DaffError) =>\n of(new DaffSendResetEmailFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n resetPassword$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthResetPasswordActionTypes.ResetPasswordAction),\n switchMap((action: DaffResetPassword<T>) =>\n iif(\n () => action.autoLogin,\n defer(() => this.driver.resetPassword(action.info).pipe(\n tap(token => this.storage.setAuthToken(token)),\n switchMap(() => of(new DaffResetPasswordSuccess(), new DaffAuthComplete())),\n )),\n defer(() => this.driver.resetPasswordOnly(action.info).pipe(\n map(() => new DaffResetPasswordSuccess()),\n )),\n ).pipe(\n catchError((error: DaffError) =>\n of(new DaffResetPasswordFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n}\n","import {\n ModuleWithProviders,\n NgModule,\n} from '@angular/core';\nimport { EffectsModule } from '@ngrx/effects';\nimport { StoreModule } from '@ngrx/store';\n\nimport {\n DaffAuthStateConfig,\n provideDaffAuthStateConfig,\n} from './config/public_api';\nimport { DaffAuthEffects } from './effects/auth.effects';\nimport { DaffAuthLoginEffects } from './effects/login.effects';\nimport { DaffAuthRegisterEffects } from './effects/register.effects';\nimport { DaffAuthResetPasswordEffects } from './effects/reset-password.effects';\nimport {\n DAFF_AUTH_STORE_FEATURE_KEY,\n daffAuthReducers,\n} from './reducers/public_api';\n\n@NgModule({\n imports: [\n StoreModule.forFeature(DAFF_AUTH_STORE_FEATURE_KEY, daffAuthReducers),\n EffectsModule.forFeature([\n DaffAuthEffects,\n DaffAuthLoginEffects,\n DaffAuthRegisterEffects,\n DaffAuthResetPasswordEffects,\n ]),\n ],\n})\nexport class DaffAuthStateModule {\n static withConfig(config: DaffAuthStateConfig): ModuleWithProviders<DaffAuthStateModule> {\n return {\n ngModule: DaffAuthStateModule,\n providers: [\n provideDaffAuthStateConfig(config),\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;AAIY,IAAA,oBAQX;AARD,CAAA,UAAY,mBAAmB,EAAA;AAC7B,IAAA,mBAAA,CAAA,sBAAA,CAAA,GAAA,0CAAiE,CAAA;AACjE,IAAA,mBAAA,CAAA,gCAAA,CAAA,GAAA,qDAAsF,CAAA;AACtF,IAAA,mBAAA,CAA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AAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,EAVrB,OAAA,EAAA,CAAA;AACP,YAAA,WAAW,CAAC,UAAU,CAAC,2BAA2B,EAAE,gBAAgB,CAAC;YACrE,aAAa,CAAC,UAAU,CAAC;gBACvB,eAAe;gBACf,oBAAoB;gBACpB,uBAAuB;gBACvB,4BAA4B;aAC7B,CAAC;SACH,CAAA,EAAA,CAAA,CAAA;2FAEU,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAX/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;AACP,wBAAA,WAAW,CAAC,UAAU,CAAC,2BAA2B,EAAE,gBAAgB,CAAC;wBACrE,aAAa,CAAC,UAAU,CAAC;4BACvB,eAAe;4BACf,oBAAoB;4BACpB,uBAAuB;4BACvB,4BAA4B;yBAC7B,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC9BD;;AAEG;;;;"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import * as faker from '@faker-js/faker/locale/en_US';
|
|
4
|
+
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
5
|
+
|
|
6
|
+
class MockAccountRegistration {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.email = faker.internet.email();
|
|
9
|
+
this.password = faker.random.alphaNumeric(16);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
;
|
|
13
|
+
class DaffAccountRegistrationFactory extends DaffModelFactory {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(MockAccountRegistration);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/** @nocollapse */ DaffAccountRegistrationFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAccountRegistrationFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19
|
+
/** @nocollapse */ DaffAccountRegistrationFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAccountRegistrationFactory, providedIn: 'root' });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAccountRegistrationFactory, decorators: [{
|
|
21
|
+
type: Injectable,
|
|
22
|
+
args: [{
|
|
23
|
+
providedIn: 'root',
|
|
24
|
+
}]
|
|
25
|
+
}], ctorParameters: function () { return []; } });
|
|
26
|
+
|
|
27
|
+
class MockAuthToken {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.token = faker.random.alphaNumeric(16);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
;
|
|
33
|
+
class DaffAuthTokenFactory extends DaffModelFactory {
|
|
34
|
+
constructor() {
|
|
35
|
+
super(MockAuthToken);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/** @nocollapse */ DaffAuthTokenFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthTokenFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
39
|
+
/** @nocollapse */ DaffAuthTokenFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthTokenFactory, providedIn: 'root' });
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthTokenFactory, decorators: [{
|
|
41
|
+
type: Injectable,
|
|
42
|
+
args: [{
|
|
43
|
+
providedIn: 'root',
|
|
44
|
+
}]
|
|
45
|
+
}], ctorParameters: function () { return []; } });
|
|
46
|
+
|
|
47
|
+
class MockAuthResetPasswordInfo {
|
|
48
|
+
constructor() {
|
|
49
|
+
this.email = faker.internet.email();
|
|
50
|
+
this.password = faker.random.alphaNumeric(16);
|
|
51
|
+
this.token = faker.random.alphaNumeric(16);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
;
|
|
55
|
+
class DaffAuthResetPasswordInfoFactory extends DaffModelFactory {
|
|
56
|
+
constructor() {
|
|
57
|
+
super(MockAuthResetPasswordInfo);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/** @nocollapse */ DaffAuthResetPasswordInfoFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthResetPasswordInfoFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
61
|
+
/** @nocollapse */ DaffAuthResetPasswordInfoFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthResetPasswordInfoFactory, providedIn: 'root' });
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthResetPasswordInfoFactory, decorators: [{
|
|
63
|
+
type: Injectable,
|
|
64
|
+
args: [{
|
|
65
|
+
providedIn: 'root',
|
|
66
|
+
}]
|
|
67
|
+
}], ctorParameters: function () { return []; } });
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Generated bundle index. Do not edit.
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
export { DaffAccountRegistrationFactory, DaffAuthResetPasswordInfoFactory, DaffAuthTokenFactory, MockAccountRegistration, MockAuthResetPasswordInfo, MockAuthToken };
|
|
74
|
+
//# sourceMappingURL=daffodil-auth-testing.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"daffodil-auth-testing.mjs","sources":["../../../libs/auth/testing/src/factories/account-registration.factory.ts","../../../libs/auth/testing/src/factories/auth-token.factory.ts","../../../libs/auth/testing/src/factories/reset-password-info.factory.ts","../../../libs/auth/testing/src/daffodil-auth-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\n\nimport { DaffAccountRegistration } from '@daffodil/auth';\nimport { DaffModelFactory } from '@daffodil/core/testing';\n\nexport class MockAccountRegistration implements DaffAccountRegistration {\n email = faker.internet.email();\n password = faker.random.alphaNumeric(16);\n};\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAccountRegistrationFactory extends DaffModelFactory<DaffAccountRegistration> {\n constructor() {\n super(MockAccountRegistration);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\n\nimport { DaffAuthToken } from '@daffodil/auth';\nimport { DaffModelFactory } from '@daffodil/core/testing';\n\nexport class MockAuthToken implements DaffAuthToken {\n token = faker.random.alphaNumeric(16);\n};\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthTokenFactory extends DaffModelFactory<DaffAuthToken> {\n constructor() {\n super(MockAuthToken);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffModelFactory } from '@daffodil/core/testing';\n\nexport class MockAuthResetPasswordInfo implements DaffAuthResetPasswordInfo {\n email = faker.internet.email();\n password = faker.random.alphaNumeric(16);\n token = faker.random.alphaNumeric(16);\n};\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthResetPasswordInfoFactory extends DaffModelFactory<DaffAuthResetPasswordInfo> {\n constructor() {\n super(MockAuthResetPasswordInfo);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAMa,uBAAuB,CAAA;AAApC,IAAA,WAAA,GAAA;QACE,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;QAC/B,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC,MAAM,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C,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;iBACnB,CAAA;;;MCNY,yBAAyB,CAAA;AAAtC,IAAA,WAAA,GAAA;QACE,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;QAC/B,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;QACzC,IAAK,CAAA,KAAA,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;KACvC;AAAA,CAAA;AAAA,CAAC;AAKI,MAAO,gCAAiC,SAAQ,gBAA2C,CAAA;AAC/F,IAAA,WAAA,GAAA;QACE,KAAK,CAAC,yBAAyB,CAAC,CAAC;KAClC;;gJAHU,gCAAgC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAhC,mBAAA,gCAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gCAAgC,cAF/B,MAAM,EAAA,CAAA,CAAA;2FAEP,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAH5C,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;iBACnB,CAAA;;;ACdD;;AAEG;;;;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, Inject, InjectionToken } from '@angular/core';
|
|
3
|
+
import { DaffPersistenceServiceToken } from '@daffodil/core';
|
|
4
|
+
import { daffTransformErrorToStateError } from '@daffodil/core/state';
|
|
5
|
+
|
|
6
|
+
class DaffAuthStorageService {
|
|
7
|
+
constructor(storageService) {
|
|
8
|
+
this.storageService = storageService;
|
|
9
|
+
this.AUTH_STORAGE_TOKEN = 'DAFF_AUTH_TOKEN';
|
|
10
|
+
}
|
|
11
|
+
getAuthToken() {
|
|
12
|
+
return this.storageService.getItem(this.AUTH_STORAGE_TOKEN);
|
|
13
|
+
}
|
|
14
|
+
setAuthToken(value) {
|
|
15
|
+
this.storageService.setItem(this.AUTH_STORAGE_TOKEN, value);
|
|
16
|
+
}
|
|
17
|
+
removeAuthToken() {
|
|
18
|
+
this.storageService.removeItem(this.AUTH_STORAGE_TOKEN);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/** @nocollapse */ DaffAuthStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthStorageService, deps: [{ token: DaffPersistenceServiceToken }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
22
|
+
/** @nocollapse */ DaffAuthStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthStorageService, providedIn: 'root' });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthStorageService, decorators: [{
|
|
24
|
+
type: Injectable,
|
|
25
|
+
args: [{
|
|
26
|
+
providedIn: 'root',
|
|
27
|
+
}]
|
|
28
|
+
}], ctorParameters: function () {
|
|
29
|
+
return [{ type: undefined, decorators: [{
|
|
30
|
+
type: Inject,
|
|
31
|
+
args: [DaffPersistenceServiceToken]
|
|
32
|
+
}] }];
|
|
33
|
+
} });
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.
|
|
37
|
+
* Can be used to further refine Daffodil errors into more specific app errors.
|
|
38
|
+
*/
|
|
39
|
+
const DAFF_AUTH_ERROR_MATCHER = new InjectionToken('DAFF_AUTH_ERROR_MATCHER', { factory: () => daffTransformErrorToStateError });
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Generated bundle index. Do not edit.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
export { DAFF_AUTH_ERROR_MATCHER, DaffAuthStorageService };
|
|
46
|
+
//# sourceMappingURL=daffodil-auth.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"daffodil-auth.mjs","sources":["../../../libs/auth/src/storage/auth-storage.service.ts","../../../libs/auth/src/injection-tokens/error-matcher.token.ts","../../../libs/auth/src/daffodil-auth.ts"],"sourcesContent":["import {\n Injectable,\n Inject,\n} from '@angular/core';\n\nimport {\n DaffPersistenceService,\n DaffPersistenceServiceToken,\n} from '@daffodil/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthStorageService {\n private readonly AUTH_STORAGE_TOKEN = 'DAFF_AUTH_TOKEN';\n\n constructor(@Inject(DaffPersistenceServiceToken) private storageService: DaffPersistenceService) {}\n\n getAuthToken(): string {\n return this.storageService.getItem(this.AUTH_STORAGE_TOKEN);\n }\n\n setAuthToken(value: string): void {\n this.storageService.setItem(this.AUTH_STORAGE_TOKEN, value);\n }\n\n removeAuthToken(): void {\n this.storageService.removeItem(this.AUTH_STORAGE_TOKEN);\n }\n}\n","import { InjectionToken } from '@angular/core';\n\nimport { daffTransformErrorToStateError } from '@daffodil/core/state';\n\n/**\n * Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.\n * Can be used to further refine Daffodil errors into more specific app errors.\n */\nexport const DAFF_AUTH_ERROR_MATCHER = new InjectionToken<typeof daffTransformErrorToStateError>(\n 'DAFF_AUTH_ERROR_MATCHER',\n { factory: () => daffTransformErrorToStateError },\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAaa,sBAAsB,CAAA;AAGjC,IAAA,WAAA,CAAyD,cAAsC,EAAA;AAAtC,QAAA,IAAc,CAAA,cAAA,GAAd,cAAc,CAAwB;AAF9E,QAAA,IAAkB,CAAA,k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Module } from '@angular/core';
|
|
4
|
+
import { DaffLoginDriver, DaffRegisterDriver, DaffAuthDriver, DaffResetPasswordDriver } from '@daffodil/auth/driver';
|
|
5
|
+
import * as i1 from '@angular/common/http';
|
|
6
|
+
import { map, switchMap } from 'rxjs/operators';
|
|
7
|
+
import { of, throwError } from 'rxjs';
|
|
8
|
+
import * as faker from '@faker-js/faker/locale/en_US';
|
|
9
|
+
import { STATUS } from 'angular-in-memory-web-api';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @inheritdoc
|
|
13
|
+
*/
|
|
14
|
+
class DaffInMemoryAuthService {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
this.http = http;
|
|
17
|
+
this.url = '/api/auth/';
|
|
18
|
+
}
|
|
19
|
+
check() {
|
|
20
|
+
return this.http.post(`${this.url}check`, {}).pipe(map(() => undefined));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/** @nocollapse */ DaffInMemoryAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryAuthService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
24
|
+
/** @nocollapse */ DaffInMemoryAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryAuthService, providedIn: 'root' });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryAuthService, decorators: [{
|
|
26
|
+
type: Injectable,
|
|
27
|
+
args: [{
|
|
28
|
+
providedIn: 'root',
|
|
29
|
+
}]
|
|
30
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @inheritdoc
|
|
34
|
+
*/
|
|
35
|
+
class DaffInMemoryLoginService {
|
|
36
|
+
constructor(http) {
|
|
37
|
+
this.http = http;
|
|
38
|
+
this.url = '/api/auth/';
|
|
39
|
+
}
|
|
40
|
+
login(request) {
|
|
41
|
+
return this.http.post(`${this.url}login`, request);
|
|
42
|
+
}
|
|
43
|
+
logout() {
|
|
44
|
+
return this.http.post(`${this.url}logout`, {}).pipe(switchMap(({ success }) => success ? of(undefined) : throwError(() => new Error('Logout failed'))));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/** @nocollapse */ DaffInMemoryLoginService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryLoginService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
48
|
+
/** @nocollapse */ DaffInMemoryLoginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryLoginService, providedIn: 'root' });
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryLoginService, decorators: [{
|
|
50
|
+
type: Injectable,
|
|
51
|
+
args: [{
|
|
52
|
+
providedIn: 'root',
|
|
53
|
+
}]
|
|
54
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @inheritdoc
|
|
58
|
+
*/
|
|
59
|
+
class DaffInMemoryRegisterService {
|
|
60
|
+
constructor(http, loginService) {
|
|
61
|
+
this.http = http;
|
|
62
|
+
this.loginService = loginService;
|
|
63
|
+
this.url = '/api/auth/';
|
|
64
|
+
}
|
|
65
|
+
register(registration) {
|
|
66
|
+
return this.registerOnly(registration).pipe(switchMap(() => this.loginService.login({ email: registration.email, password: registration.password })), map(({ token }) => token));
|
|
67
|
+
}
|
|
68
|
+
registerOnly(registration) {
|
|
69
|
+
return this.http.post(`${this.url}register`, registration);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/** @nocollapse */ DaffInMemoryRegisterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryRegisterService, deps: [{ token: i1.HttpClient }, { token: DaffInMemoryLoginService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
73
|
+
/** @nocollapse */ DaffInMemoryRegisterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryRegisterService, providedIn: 'root' });
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryRegisterService, decorators: [{
|
|
75
|
+
type: Injectable,
|
|
76
|
+
args: [{
|
|
77
|
+
providedIn: 'root',
|
|
78
|
+
}]
|
|
79
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: DaffInMemoryLoginService }]; } });
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @inheritdoc
|
|
83
|
+
*/
|
|
84
|
+
class DaffInMemoryResetPasswordService {
|
|
85
|
+
constructor(http, loginService) {
|
|
86
|
+
this.http = http;
|
|
87
|
+
this.loginService = loginService;
|
|
88
|
+
this.url = '/api/auth/';
|
|
89
|
+
}
|
|
90
|
+
resetPassword(info) {
|
|
91
|
+
return this.resetPasswordOnly(info).pipe(switchMap(() => this.loginService.login({ email: info.email, password: info.password })), map(({ token }) => token));
|
|
92
|
+
}
|
|
93
|
+
resetPasswordOnly(info) {
|
|
94
|
+
return this.http.post(`${this.url}resetPassword`, info);
|
|
95
|
+
}
|
|
96
|
+
sendResetEmail(email) {
|
|
97
|
+
return this.http.post(`${this.url}sendResetEmail`, { email });
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/** @nocollapse */ DaffInMemoryResetPasswordService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryResetPasswordService, deps: [{ token: i1.HttpClient }, { token: DaffInMemoryLoginService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
101
|
+
/** @nocollapse */ DaffInMemoryResetPasswordService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryResetPasswordService, providedIn: 'root' });
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryResetPasswordService, decorators: [{
|
|
103
|
+
type: Injectable,
|
|
104
|
+
args: [{
|
|
105
|
+
providedIn: 'root',
|
|
106
|
+
}]
|
|
107
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: DaffInMemoryLoginService }]; } });
|
|
108
|
+
|
|
109
|
+
class DaffAuthInMemoryDriverModule {
|
|
110
|
+
static forRoot() {
|
|
111
|
+
return {
|
|
112
|
+
ngModule: DaffAuthInMemoryDriverModule,
|
|
113
|
+
providers: [
|
|
114
|
+
{
|
|
115
|
+
provide: DaffLoginDriver,
|
|
116
|
+
useExisting: DaffInMemoryLoginService,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
provide: DaffRegisterDriver,
|
|
120
|
+
useExisting: DaffInMemoryRegisterService,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
provide: DaffAuthDriver,
|
|
124
|
+
useExisting: DaffInMemoryAuthService,
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
provide: DaffResetPasswordDriver,
|
|
128
|
+
useExisting: DaffInMemoryResetPasswordService,
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
/** @nocollapse */ DaffAuthInMemoryDriverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthInMemoryDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
135
|
+
/** @nocollapse */ DaffAuthInMemoryDriverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthInMemoryDriverModule, imports: [CommonModule] });
|
|
136
|
+
/** @nocollapse */ DaffAuthInMemoryDriverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthInMemoryDriverModule, imports: [[
|
|
137
|
+
CommonModule,
|
|
138
|
+
]] });
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthInMemoryDriverModule, decorators: [{
|
|
140
|
+
type: NgModule,
|
|
141
|
+
args: [{
|
|
142
|
+
imports: [
|
|
143
|
+
CommonModule,
|
|
144
|
+
],
|
|
145
|
+
}]
|
|
146
|
+
}] });
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @inheritdoc
|
|
150
|
+
*/
|
|
151
|
+
class DaffInMemoryBackendAuthService {
|
|
152
|
+
constructor() {
|
|
153
|
+
this.customers = {};
|
|
154
|
+
}
|
|
155
|
+
generateToken() {
|
|
156
|
+
return faker.random.alphaNumeric(16);
|
|
157
|
+
}
|
|
158
|
+
createDb() {
|
|
159
|
+
return {
|
|
160
|
+
auth: this.customers,
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
post(reqInfo) {
|
|
164
|
+
if (reqInfo.id === 'login') {
|
|
165
|
+
return this.login(reqInfo);
|
|
166
|
+
}
|
|
167
|
+
else if (reqInfo.id === 'register') {
|
|
168
|
+
return this.register(reqInfo);
|
|
169
|
+
}
|
|
170
|
+
else if (reqInfo.id === 'logout') {
|
|
171
|
+
return this.logout(reqInfo);
|
|
172
|
+
}
|
|
173
|
+
else if (reqInfo.id === 'check') {
|
|
174
|
+
return this.check(reqInfo);
|
|
175
|
+
}
|
|
176
|
+
else if (reqInfo.id === 'resetPassword') {
|
|
177
|
+
return this.resetPassword(reqInfo);
|
|
178
|
+
}
|
|
179
|
+
else if (reqInfo.id === 'sendResetEmail') {
|
|
180
|
+
return this.sendResetEmail(reqInfo);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
login(reqInfo) {
|
|
184
|
+
const { email, password, } = reqInfo.utils.getJsonBody(reqInfo.req);
|
|
185
|
+
const customer = this.customers[email];
|
|
186
|
+
if (password && customer?.password === password) {
|
|
187
|
+
this.customers[email].token = this.generateToken();
|
|
188
|
+
return reqInfo.utils.createResponse$(() => ({
|
|
189
|
+
body: {
|
|
190
|
+
token: customer.token,
|
|
191
|
+
},
|
|
192
|
+
status: STATUS.OK,
|
|
193
|
+
}));
|
|
194
|
+
}
|
|
195
|
+
return reqInfo.utils.createResponse$(() => ({
|
|
196
|
+
status: STATUS.UNAUTHORIZED,
|
|
197
|
+
}));
|
|
198
|
+
}
|
|
199
|
+
register(reqInfo) {
|
|
200
|
+
const { email, password, } = reqInfo.utils.getJsonBody(reqInfo.req);
|
|
201
|
+
this.customers[email] = {
|
|
202
|
+
email,
|
|
203
|
+
password,
|
|
204
|
+
};
|
|
205
|
+
return reqInfo.utils.createResponse$(() => ({
|
|
206
|
+
status: STATUS.CREATED,
|
|
207
|
+
}));
|
|
208
|
+
}
|
|
209
|
+
logout(reqInfo) {
|
|
210
|
+
const { email, } = reqInfo.utils.getJsonBody(reqInfo.req);
|
|
211
|
+
if (this.customers[email]) {
|
|
212
|
+
this.customers[email].token = null;
|
|
213
|
+
}
|
|
214
|
+
return reqInfo.utils.createResponse$(() => ({
|
|
215
|
+
body: { success: true },
|
|
216
|
+
status: STATUS.OK,
|
|
217
|
+
}));
|
|
218
|
+
}
|
|
219
|
+
check(reqInfo) {
|
|
220
|
+
return reqInfo.utils.createResponse$(() => ({
|
|
221
|
+
body: {},
|
|
222
|
+
status: STATUS.OK,
|
|
223
|
+
}));
|
|
224
|
+
}
|
|
225
|
+
resetPassword(reqInfo) {
|
|
226
|
+
const { email, password, } = reqInfo.utils.getJsonBody(reqInfo.req);
|
|
227
|
+
if (this.customers[email]) {
|
|
228
|
+
this.customers[email].password = password;
|
|
229
|
+
return reqInfo.utils.createResponse$(() => ({
|
|
230
|
+
status: STATUS.OK,
|
|
231
|
+
}));
|
|
232
|
+
}
|
|
233
|
+
return reqInfo.utils.createResponse$(() => ({
|
|
234
|
+
status: STATUS.UNAUTHORIZED,
|
|
235
|
+
}));
|
|
236
|
+
}
|
|
237
|
+
sendResetEmail(reqInfo) {
|
|
238
|
+
return reqInfo.utils.createResponse$(() => ({
|
|
239
|
+
body: {},
|
|
240
|
+
status: STATUS.OK,
|
|
241
|
+
}));
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
/** @nocollapse */ DaffInMemoryBackendAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendAuthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
245
|
+
/** @nocollapse */ DaffInMemoryBackendAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendAuthService, providedIn: 'root' });
|
|
246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendAuthService, decorators: [{
|
|
247
|
+
type: Injectable,
|
|
248
|
+
args: [{
|
|
249
|
+
providedIn: 'root',
|
|
250
|
+
}]
|
|
251
|
+
}] });
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Generated bundle index. Do not edit.
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
export { DaffAuthInMemoryDriverModule, DaffInMemoryAuthService, DaffInMemoryBackendAuthService, DaffInMemoryLoginService, DaffInMemoryRegisterService };
|
|
258
|
+
//# sourceMappingURL=daffodil-auth-driver-in-memory.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"daffodil-auth-driver-in-memory.mjs","sources":["../../../libs/auth/driver/in-memory/src/drivers/auth/auth.service.ts","../../../libs/auth/driver/in-memory/src/drivers/login/login.service.ts","../../../libs/auth/driver/in-memory/src/drivers/register/register.service.ts","../../../libs/auth/driver/in-memory/src/drivers/reset-password/service.ts","../../../libs/auth/driver/in-memory/src/drivers/auth-driver.module.ts","../../../libs/auth/driver/in-memory/src/backend/auth.service.ts","../../../libs/auth/driver/in-memory/src/daffodil-auth-driver-in-memory.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\nimport { DaffAuthServiceInterface } from '@daffodil/auth/driver';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryAuthService implements DaffAuthServiceInterface {\n url = '/api/auth/';\n\n constructor(private http: HttpClient) {}\n\n check(): Observable<void> {\n return this.http.post(`${this.url}check`, {}).pipe(\n map(() => undefined),\n );\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport {\n Observable,\n of,\n throwError,\n} from 'rxjs';\nimport { switchMap } from 'rxjs/operators';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\nimport { DaffLoginServiceInterface } from '@daffodil/auth/driver';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryLoginService implements DaffLoginServiceInterface {\n url = '/api/auth/';\n\n constructor(private http: HttpClient) {}\n\n login(request: DaffLoginInfo): Observable<DaffAuthToken> {\n return this.http.post<DaffAuthToken>(`${this.url}login`, request);\n }\n\n logout(): Observable<void> {\n return this.http.post<{success: boolean}>(`${this.url}logout`, {}).pipe(\n switchMap(({ success }) => success ? of(undefined) : throwError(() => new Error('Logout failed'))),\n );\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport {\n map,\n switchMap,\n} from 'rxjs/operators';\n\nimport { DaffAccountRegistration } from '@daffodil/auth';\nimport { DaffRegisterServiceInterface } from '@daffodil/auth/driver';\n\nimport { DaffInMemoryLoginService } from '../login/login.service';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryRegisterService implements DaffRegisterServiceInterface {\n url = '/api/auth/';\n\n constructor(\n private http: HttpClient,\n private loginService: DaffInMemoryLoginService,\n ) {}\n\n register(registration: DaffAccountRegistration): Observable<string> {\n return this.registerOnly(registration).pipe(\n switchMap(() => this.loginService.login({ email: registration.email, password: registration.password })),\n map(({ token }) => token),\n );\n }\n\n registerOnly(registration: DaffAccountRegistration): Observable<void> {\n return this.http.post<void>(`${this.url}register`, registration);\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport {\n map,\n switchMap,\n} from 'rxjs/operators';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffResetPasswordServiceInterface } from '@daffodil/auth/driver';\n\nimport { DaffInMemoryLoginService } from '../login/login.service';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryResetPasswordService implements DaffResetPasswordServiceInterface {\n url = '/api/auth/';\n\n constructor(\n private http: HttpClient,\n private loginService: DaffInMemoryLoginService,\n ) {}\n\n resetPassword(info: DaffAuthResetPasswordInfo): Observable<string> {\n return this.resetPasswordOnly(info).pipe(\n switchMap(() => this.loginService.login({ email: info.email, password: info.password })),\n map(({ token }) => token),\n );\n }\n\n resetPasswordOnly(info: DaffAuthResetPasswordInfo): Observable<void> {\n return this.http.post<void>(`${this.url}resetPassword`, info);\n }\n\n sendResetEmail(email: string): Observable<void> {\n return this.http.post<void>(`${this.url}sendResetEmail`, { email });\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport {\n DaffLoginDriver,\n DaffRegisterDriver,\n DaffAuthDriver,\n DaffResetPasswordDriver,\n} from '@daffodil/auth/driver';\n\nimport { DaffInMemoryAuthService } from './auth/auth.service';\nimport { DaffInMemoryLoginService } from './login/login.service';\nimport { DaffInMemoryRegisterService } from './register/register.service';\nimport { DaffInMemoryResetPasswordService } from './reset-password/service';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n})\nexport class DaffAuthInMemoryDriverModule {\n static forRoot(): ModuleWithProviders<DaffAuthInMemoryDriverModule> {\n return {\n ngModule: DaffAuthInMemoryDriverModule,\n providers: [\n {\n provide: DaffLoginDriver,\n useExisting: DaffInMemoryLoginService,\n },\n {\n provide: DaffRegisterDriver,\n useExisting: DaffInMemoryRegisterService,\n },\n {\n provide: DaffAuthDriver,\n useExisting: DaffInMemoryAuthService,\n },\n {\n provide: DaffResetPasswordDriver,\n useExisting: DaffInMemoryResetPasswordService,\n },\n ],\n };\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\nimport {\n InMemoryDbService,\n STATUS,\n} from 'angular-in-memory-web-api';\n\nimport { DaffInMemoryDbCustomer } from '../models/db-customer.type';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryBackendAuthService implements InMemoryDbService {\n customers: Record<DaffInMemoryDbCustomer['email'], DaffInMemoryDbCustomer> = {};\n\n private generateToken(): string {\n return faker.random.alphaNumeric(16);\n }\n\n createDb() {\n return {\n auth: this.customers,\n };\n }\n\n post(reqInfo) {\n if (reqInfo.id === 'login') {\n return this.login(reqInfo);\n } else if (reqInfo.id === 'register') {\n return this.register(reqInfo);\n } else if (reqInfo.id === 'logout') {\n return this.logout(reqInfo);\n } else if (reqInfo.id === 'check') {\n return this.check(reqInfo);\n } else if (reqInfo.id === 'resetPassword') {\n return this.resetPassword(reqInfo);\n } else if (reqInfo.id === 'sendResetEmail') {\n return this.sendResetEmail(reqInfo);\n }\n }\n\n private login(reqInfo: any) {\n const {\n email,\n password,\n } = reqInfo.utils.getJsonBody(reqInfo.req);\n const customer = this.customers[email];\n\n if (password && customer?.password === password) {\n this.customers[email].token = this.generateToken();\n\n return reqInfo.utils.createResponse$(() => ({\n body: {\n token: customer.token,\n },\n status: STATUS.OK,\n }));\n }\n\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.UNAUTHORIZED,\n }));\n }\n\n private register(reqInfo) {\n const {\n email,\n password,\n } = reqInfo.utils.getJsonBody(reqInfo.req);\n\n this.customers[email] = {\n email,\n password,\n };\n\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.CREATED,\n }));\n }\n\n private logout(reqInfo) {\n const {\n email,\n } = reqInfo.utils.getJsonBody(reqInfo.req);\n\n if (this.customers[email]) {\n this.customers[email].token = null;\n }\n\n return reqInfo.utils.createResponse$(() => ({\n body: { success: true },\n status: STATUS.OK,\n }));\n }\n\n private check(reqInfo) {\n return reqInfo.utils.createResponse$(() => ({\n body: {},\n status: STATUS.OK,\n }));\n }\n\n private resetPassword(reqInfo) {\n const {\n email,\n password,\n } = reqInfo.utils.getJsonBody(reqInfo.req);\n\n if (this.customers[email]) {\n this.customers[email].password = password;\n\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.OK,\n }));\n }\n\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.UNAUTHORIZED,\n }));\n }\n\n private sendResetEmail(reqInfo) {\n return reqInfo.utils.createResponse$(() => ({\n body: {},\n status: STATUS.OK,\n }));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2.DaffInMemoryLoginService"],"mappings":";;;;;;;;;;AAOA;;AAEG;MAIU,uBAAuB,CAAA;AAGlC,IAAA,WAAA,CAAoB,IAAgB,EAAA;QAAhB,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;QAFpC,IAAG,CAAA,GAAA,GAAG,YAAY,CAAC;KAEqB;IAExC,KAAK,GAAA;QACH,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAG,EAAA,IAAI,CAAC,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