@daffodil/auth 0.88.1 → 0.90.0
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/driver/in-memory/index.d.ts +84 -1
- package/driver/index.d.ts +135 -1
- package/driver/magento/index.d.ts +132 -1
- package/driver/testing/index.d.ts +49 -1
- package/fesm2022/daffodil-auth-driver-in-memory.mjs +19 -19
- package/fesm2022/daffodil-auth-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-auth-driver-magento.mjs +22 -22
- package/fesm2022/daffodil-auth-driver-magento.mjs.map +1 -1
- package/fesm2022/daffodil-auth-driver-testing.mjs +16 -16
- package/fesm2022/daffodil-auth-driver-testing.mjs.map +1 -1
- package/fesm2022/daffodil-auth-driver.mjs +3 -3
- package/fesm2022/daffodil-auth-driver.mjs.map +1 -1
- package/fesm2022/daffodil-auth-routing.mjs +20 -20
- package/fesm2022/daffodil-auth-routing.mjs.map +1 -1
- package/fesm2022/daffodil-auth-state-testing.mjs +16 -16
- package/fesm2022/daffodil-auth-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-auth-state.mjs +28 -28
- package/fesm2022/daffodil-auth-state.mjs.map +1 -1
- package/fesm2022/daffodil-auth-testing.mjs +9 -9
- package/fesm2022/daffodil-auth-testing.mjs.map +1 -1
- package/fesm2022/daffodil-auth.mjs +3 -3
- package/fesm2022/daffodil-auth.mjs.map +1 -1
- package/index.d.ts +76 -1
- package/package.json +1 -1
- package/routing/index.d.ts +104 -1
- package/state/index.d.ts +424 -1
- package/state/testing/index.d.ts +59 -1
- package/testing/index.d.ts +38 -1
- package/driver/constants/public_api.d.ts +0 -1
- package/driver/constants/unauthenticated-error-codes.d.ts +0 -10
- package/driver/errors/authentication-failed.d.ts +0 -6
- package/driver/errors/codes.enum.d.ts +0 -6
- package/driver/errors/invalid-api-response.d.ts +0 -6
- package/driver/errors/map.d.ts +0 -13
- package/driver/errors/public_api.d.ts +0 -6
- package/driver/errors/registration-failed.d.ts +0 -9
- package/driver/errors/unauthorized.d.ts +0 -6
- package/driver/in-memory/backend/auth.service.d.ts +0 -24
- package/driver/in-memory/collection-name.const.d.ts +0 -1
- package/driver/in-memory/drivers/auth/auth.service.d.ts +0 -16
- package/driver/in-memory/drivers/auth-driver.module.d.ts +0 -9
- package/driver/in-memory/drivers/login/login.service.d.ts +0 -18
- package/driver/in-memory/drivers/public_api.d.ts +0 -4
- package/driver/in-memory/drivers/register/register.service.d.ts +0 -20
- package/driver/in-memory/drivers/reset-password/service.d.ts +0 -21
- package/driver/in-memory/models/db-customer.type.d.ts +0 -8
- package/driver/in-memory/public_api.d.ts +0 -2
- package/driver/interfaces/auth-service.interface.d.ts +0 -8
- package/driver/interfaces/login-service.interface.d.ts +0 -15
- package/driver/interfaces/public_api.d.ts +0 -4
- package/driver/interfaces/register-service.interface.d.ts +0 -18
- package/driver/interfaces/reset-password-service.interface.d.ts +0 -17
- package/driver/magento/apollo-bearer-token-link-generator.d.ts +0 -16
- package/driver/magento/auth-driver.module.d.ts +0 -9
- package/driver/magento/auth.service.d.ts +0 -14
- package/driver/magento/errors/codes.d.ts +0 -5
- package/driver/magento/errors/map.d.ts +0 -2
- package/driver/magento/errors/transform.d.ts +0 -1
- package/driver/magento/login.service.d.ts +0 -18
- package/driver/magento/models/public_api.d.ts +0 -4
- package/driver/magento/models/response/auth.d.ts +0 -3
- package/driver/magento/models/response/register.type.d.ts +0 -7
- package/driver/magento/models/response/reset-password.type.d.ts +0 -3
- package/driver/magento/models/response/send-reset-email.type.d.ts +0 -3
- package/driver/magento/public_api.d.ts +0 -8
- package/driver/magento/queries/check-token.d.ts +0 -1
- package/driver/magento/queries/create-customer.d.ts +0 -1
- package/driver/magento/queries/generate-token.d.ts +0 -1
- package/driver/magento/queries/public_api.d.ts +0 -7
- package/driver/magento/queries/reset-password.d.ts +0 -1
- package/driver/magento/queries/responses/check-token-response.d.ts +0 -5
- package/driver/magento/queries/responses/generate-token-response.d.ts +0 -4
- package/driver/magento/queries/responses/public_api.d.ts +0 -3
- package/driver/magento/queries/responses/revoke-customer-token-response.d.ts +0 -5
- package/driver/magento/queries/revoke-customer-token.d.ts +0 -1
- package/driver/magento/queries/send-reset-email.d.ts +0 -1
- package/driver/magento/register.service.d.ts +0 -18
- package/driver/magento/reset-password.service.d.ts +0 -19
- package/driver/magento/transforms/auth-transformer.service.d.ts +0 -16
- package/driver/magento/validators/check-token.d.ts +0 -3
- package/driver/magento/validators/generate-token.d.ts +0 -3
- package/driver/magento/validators/public_api.d.ts +0 -5
- package/driver/magento/validators/reset-password.d.ts +0 -3
- package/driver/magento/validators/revoke-token.d.ts +0 -3
- package/driver/magento/validators/send-reset-email.d.ts +0 -3
- package/driver/public_api.d.ts +0 -4
- package/driver/services/auth-check.service.d.ts +0 -17
- package/driver/services/public_api.d.ts +0 -1
- package/driver/testing/drivers/auth/auth.service.d.ts +0 -11
- package/driver/testing/drivers/auth-driver.module.d.ts +0 -9
- package/driver/testing/drivers/login/login.service.d.ts +0 -16
- package/driver/testing/drivers/public_api.d.ts +0 -4
- package/driver/testing/drivers/register/register.service.d.ts +0 -16
- package/driver/testing/drivers/reset-password/service.d.ts +0 -17
- package/driver/testing/public_api.d.ts +0 -1
- package/errors/codes.enum.d.ts +0 -3
- package/errors/map.d.ts +0 -7
- package/errors/missing-token.d.ts +0 -10
- package/errors/public_api.d.ts +0 -3
- package/models/account-registration.d.ts +0 -15
- package/models/auth-token.d.ts +0 -3
- package/models/login-info.d.ts +0 -4
- package/models/public_api.d.ts +0 -4
- package/models/reset-password-info.type.d.ts +0 -14
- package/public_api.d.ts +0 -3
- package/routing/config/default.d.ts +0 -2
- package/routing/config/interface.d.ts +0 -29
- package/routing/config/public_api.d.ts +0 -3
- package/routing/config/token.d.ts +0 -2
- package/routing/effects/redirect.effects.d.ts +0 -18
- package/routing/guards/guest-only-guard-redirect.token.d.ts +0 -1
- package/routing/guards/guest-only.guard.d.ts +0 -20
- package/routing/guards/member-only-guard-redirect.token.d.ts +0 -1
- package/routing/guards/member-only.guard.d.ts +0 -20
- package/routing/guards/public_api.d.ts +0 -5
- package/routing/guards/reset-password.guard.d.ts +0 -13
- package/routing/helpers/public_api.d.ts +0 -1
- package/routing/helpers/redirect-unauthenticated-hook-factory.d.ts +0 -4
- package/routing/module.d.ts +0 -9
- package/routing/public_api.d.ts +0 -5
- package/routing/redirect.module.d.ts +0 -7
- package/state/actions/auth.actions.d.ts +0 -56
- package/state/actions/login.actions.d.ts +0 -64
- package/state/actions/public_api.d.ts +0 -4
- package/state/actions/register.actions.d.ts +0 -40
- package/state/actions/reset-password.actions.d.ts +0 -74
- package/state/auth-state.module.d.ts +0 -11
- package/state/config/default.d.ts +0 -2
- package/state/config/public_api.d.ts +0 -3
- package/state/config/token.d.ts +0 -2
- package/state/config/type.d.ts +0 -7
- package/state/effects/auth.effects.d.ts +0 -28
- package/state/effects/login.effects.d.ts +0 -17
- package/state/effects/register.effects.d.ts +0 -17
- package/state/effects/reset-password.effects.d.ts +0 -18
- package/state/facades/auth/facade.d.ts +0 -19
- package/state/facades/auth/facade.interface.d.ts +0 -11
- package/state/facades/auth/public_api.d.ts +0 -2
- package/state/facades/login/facade.d.ts +0 -18
- package/state/facades/login/facade.interface.d.ts +0 -7
- package/state/facades/login/public_api.d.ts +0 -2
- package/state/facades/public_api.d.ts +0 -4
- package/state/facades/register/facade.d.ts +0 -18
- package/state/facades/register/facade.interface.d.ts +0 -7
- package/state/facades/register/public_api.d.ts +0 -2
- package/state/facades/reset-password/facade.d.ts +0 -20
- package/state/facades/reset-password/facade.interface.d.ts +0 -9
- package/state/facades/reset-password/public_api.d.ts +0 -2
- package/state/injection-tokens/error-matcher.token.d.ts +0 -2
- package/state/injection-tokens/public_api.d.ts +0 -2
- package/state/injection-tokens/unauthenticated/hook.token.d.ts +0 -2
- package/state/injection-tokens/unauthenticated/hook.type.d.ts +0 -9
- package/state/injection-tokens/unauthenticated/hooks.token.d.ts +0 -2
- package/state/injection-tokens/unauthenticated/public_api.d.ts +0 -2
- package/state/public_api.d.ts +0 -7
- package/state/reducers/auth/auth-initial-state.d.ts +0 -2
- package/state/reducers/auth/auth-reducer-state.interface.d.ts +0 -4
- package/state/reducers/auth/auth.reducer.d.ts +0 -3
- package/state/reducers/auth/public_api.d.ts +0 -3
- package/state/reducers/auth-feature-state.interface.d.ts +0 -14
- package/state/reducers/auth-reducers.d.ts +0 -3
- package/state/reducers/auth-store-feature-key.d.ts +0 -1
- package/state/reducers/login/login-initial-state.d.ts +0 -2
- package/state/reducers/login/login-reducer-state.interface.d.ts +0 -2
- package/state/reducers/login/login.reducer.d.ts +0 -4
- package/state/reducers/login/public_api.d.ts +0 -3
- package/state/reducers/public_api.d.ts +0 -8
- package/state/reducers/register/public_api.d.ts +0 -3
- package/state/reducers/register/register-initial-state.d.ts +0 -2
- package/state/reducers/register/register-reducer-state.interface.d.ts +0 -2
- package/state/reducers/register/register.reducer.d.ts +0 -4
- package/state/reducers/reset-password/initial-state.d.ts +0 -2
- package/state/reducers/reset-password/public_api.d.ts +0 -3
- package/state/reducers/reset-password/reducer.d.ts +0 -4
- package/state/reducers/reset-password/state.interface.d.ts +0 -5
- package/state/reducers/token/extra.token.d.ts +0 -3
- package/state/reducers/token/public_api.d.ts +0 -1
- package/state/reducers/token/reducers.token.d.ts +0 -3
- package/state/selectors/auth/auth.selector.d.ts +0 -8
- package/state/selectors/auth-all.selector.d.ts +0 -10
- package/state/selectors/auth-feature.selector.d.ts +0 -6
- package/state/selectors/login/login.selector.d.ts +0 -7
- package/state/selectors/public_api.d.ts +0 -5
- package/state/selectors/register/register.selector.d.ts +0 -7
- package/state/selectors/reset-password/selector.d.ts +0 -9
- package/state/testing/auth-testing.module.d.ts +0 -6
- package/state/testing/mock-auth-facade.d.ts +0 -16
- package/state/testing/mock-login-facade.d.ts +0 -15
- package/state/testing/mock-register-facade.d.ts +0 -15
- package/state/testing/mock-reset-password-facade.d.ts +0 -16
- package/state/testing/public_api.d.ts +0 -5
- package/storage/auth-storage.service.d.ts +0 -12
- package/testing/factories/account-registration.factory.d.ts +0 -15
- package/testing/factories/auth-token.factory.d.ts +0 -11
- package/testing/factories/public_api.d.ts +0 -3
- package/testing/factories/reset-password-info.factory.d.ts +0 -13
- package/testing/public_api.d.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-auth-routing.mjs","sources":["../../../libs/auth/routing/src/guards/member-only-guard-redirect.token.ts","../../../libs/auth/routing/src/guards/member-only.guard.ts","../../../libs/auth/routing/src/guards/guest-only-guard-redirect.token.ts","../../../libs/auth/routing/src/guards/guest-only.guard.ts","../../../libs/auth/routing/src/config/default.ts","../../../libs/auth/routing/src/config/token.ts","../../../libs/auth/routing/src/guards/reset-password.guard.ts","../../../libs/auth/routing/src/helpers/redirect-unauthenticated-hook-factory.ts","../../../libs/auth/routing/src/module.ts","../../../libs/auth/routing/src/effects/redirect.effects.ts","../../../libs/auth/routing/src/redirect.module.ts","../../../libs/auth/routing/src/daffodil-auth-routing.ts"],"sourcesContent":["import { createSingleInjectionToken } from '@daffodil/core';\n\nexport const {\n token: DaffAuthMemberOnlyGuardRedirectUrl,\n /**\n * Provider function for {@link DaffAuthMemberOnlyGuardRedirectUrl}.\n */\n provider: provideDaffAuthMemberOnlyGuardRedirectUrl,\n} = createSingleInjectionToken<string>(\n 'DaffAuthMemberOnlyGuardRedirectUrl',\n { factory: () => '/' },\n);\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { Store } from '@ngrx/store';\nimport {\n Observable,\n of,\n} from 'rxjs';\nimport {\n catchError,\n map,\n tap,\n} from 'rxjs/operators';\n\nimport { DaffAuthStorageService } from '@daffodil/auth';\nimport {\n DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES,\n DaffAuthDriverTokenCheck,\n} from '@daffodil/auth/driver';\nimport {\n DAFF_AUTH_ERROR_MATCHER,\n DaffAuthGuardLogout,\n} from '@daffodil/auth/state';\nimport { DaffError } from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport { DaffAuthMemberOnlyGuardRedirectUrl } from './member-only-guard-redirect.token';\n\n\n@Injectable({\n providedIn: 'any',\n})\nexport class MemberOnlyGuard {\n constructor(\n private tokenCheck: DaffAuthDriverTokenCheck,\n private storage: DaffAuthStorageService,\n private router: Router,\n private store: Store,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n @Inject(DaffAuthMemberOnlyGuardRedirectUrl) private redirectUrl: string,\n ) {}\n\n canActivate(): Observable<boolean> {\n return this.isAuthenticated().pipe(\n tap(result => {\n if (!result) {\n this.router.navigateByUrl(this.redirectUrl);\n }\n }),\n );\n }\n\n private isAuthenticated(): Observable<boolean> {\n return this.tokenCheck.check().pipe(\n map(() => true),\n catchError((error: DaffError) => {\n if (DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES[error.code]) {\n this.store.dispatch(new DaffAuthGuardLogout(this.errorMatcher(error)));\n }\n return of(false);\n }),\n );\n }\n}\n","import { createSingleInjectionToken } from '@daffodil/core';\n\nexport const {\n token: DaffAuthGuestOnlyGuardRedirectUrl,\n /**\n * Provider function for {@link DaffAuthGuestOnlyGuardRedirectUrl}.\n */\n provider: provideDaffAuthGuestOnlyGuardRedirectUrl,\n} = createSingleInjectionToken<string>(\n 'DaffAuthGuestOnlyGuardRedirectUrl',\n { factory: () => '/' },\n);\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { Store } from '@ngrx/store';\nimport {\n Observable,\n of,\n} from 'rxjs';\nimport {\n catchError,\n map,\n tap,\n} from 'rxjs/operators';\n\nimport { DaffAuthStorageService } from '@daffodil/auth';\nimport {\n DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES,\n DaffAuthDriverTokenCheck,\n} from '@daffodil/auth/driver';\nimport {\n DAFF_AUTH_ERROR_MATCHER,\n DaffAuthGuardLogout,\n} from '@daffodil/auth/state';\nimport { DaffError } from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport { DaffAuthGuestOnlyGuardRedirectUrl } from './guest-only-guard-redirect.token';\n\n@Injectable({\n providedIn: 'any',\n})\nexport class GuestOnlyGuard {\n constructor(\n private tokenCheck: DaffAuthDriverTokenCheck,\n private storage: DaffAuthStorageService,\n private router: Router,\n private store: Store,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n @Inject(DaffAuthGuestOnlyGuardRedirectUrl) private redirectUrl: string,\n ) {}\n\n canActivate(): Observable<boolean> {\n return this.isUnauthenticated().pipe(\n tap(result => {\n if (!result) {\n this.router.navigateByUrl(this.redirectUrl);\n }\n }),\n );\n }\n\n private isUnauthenticated(): Observable<boolean> {\n return this.tokenCheck.check().pipe(\n map(() => false),\n catchError((error: DaffError) => {\n if (DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES[error.code]) {\n this.store.dispatch(new DaffAuthGuardLogout(this.errorMatcher(error)));\n }\n return of(true);\n }),\n );\n }\n}\n","import { DaffAuthRoutingConfig } from './interface';\n\nexport const DAFF_AUTH_ROUTING_CONFIG_DEFAULT: DaffAuthRoutingConfig = {\n resetPasswordTokenParam: 'token',\n redirectUrlParam: 'redirect',\n authCompleteRedirectPath: '/',\n logoutRedirectPath: '/',\n tokenExpirationRedirectPath: '/',\n};\n","import { createConfigInjectionToken } from '@daffodil/core';\n\nimport { DAFF_AUTH_ROUTING_CONFIG_DEFAULT } from './default';\nimport { DaffAuthRoutingConfig } from './interface';\n\nexport const {\n /**\n * The token used to provide @daffodil/auth/routing config data.\n */\n token: DAFF_AUTH_ROUTING_CONFIG,\n /**\n * Provider function for {@link DAFF_AUTH_ROUTING_CONFIG}.\n */\n provider: provideDaffAuthRoutingConfig,\n} = createConfigInjectionToken<DaffAuthRoutingConfig>(DAFF_AUTH_ROUTING_CONFIG_DEFAULT, 'DAFF_AUTH_ROUTING_CONFIG');\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport { ActivatedRouteSnapshot } from '@angular/router';\nimport {\n Observable,\n of,\n} from 'rxjs';\n\nimport {\n DaffAuthFacade,\n DaffResetPasswordLanding,\n} from '@daffodil/auth/state';\n\nimport {\n DaffAuthRoutingConfig,\n DAFF_AUTH_ROUTING_CONFIG,\n} from '../config/public_api';\n\n@Injectable({\n providedIn: 'any',\n})\nexport class DaffAuthResetPasswordGuard {\n constructor(\n private facade: DaffAuthFacade,\n @Inject(DAFF_AUTH_ROUTING_CONFIG) private config: DaffAuthRoutingConfig,\n ) {}\n\n canActivate(route: ActivatedRouteSnapshot): Observable<boolean> {\n const token = route.queryParamMap.get(this.config.resetPasswordTokenParam);\n\n if (!token) {\n return of(false);\n }\n\n this.facade.dispatch(new DaffResetPasswordLanding(token));\n\n return of(true);\n }\n}\n","import {\n ActivatedRoute,\n Router,\n} from '@angular/router';\nimport {\n from,\n of,\n} from 'rxjs';\n\nimport {\n DaffAuthActionTypes,\n DaffAuthLoginActionTypes,\n DaffAuthUnauthenticatedHook,\n} from '@daffodil/auth/state';\n\nimport { DaffAuthRoutingConfig } from '../config/public_api';\n\nexport function daffAuthRoutingRedirectUnauthenticatedHookFactory(router: Router, route: ActivatedRoute, config: DaffAuthRoutingConfig): DaffAuthUnauthenticatedHook {\n return (trigger) => {\n switch (trigger) {\n case DaffAuthLoginActionTypes.LogoutSuccessAction:\n return from(router.navigateByUrl(route.snapshot.queryParamMap.get(config.redirectUrlParam) || config.logoutRedirectPath));\n\n case DaffAuthActionTypes.AuthCheckFailureAction:\n case DaffAuthActionTypes.AuthGuardLogoutAction:\n return from(router.navigateByUrl(route.snapshot.queryParamMap.get(config.redirectUrlParam) || config.tokenExpirationRedirectPath));\n\n default:\n return of(null);\n }\n };\n}\n","import {\n ModuleWithProviders,\n NgModule,\n} from '@angular/core';\n\nimport {\n DaffAuthRoutingConfig,\n provideDaffAuthRoutingConfig,\n} from './config/public_api';\nimport {\n DaffAuthResetPasswordGuard,\n GuestOnlyGuard,\n MemberOnlyGuard,\n} from './guards/public_api';\n\n@NgModule({\n providers: [\n DaffAuthResetPasswordGuard,\n MemberOnlyGuard,\n GuestOnlyGuard,\n ],\n})\nexport class DaffAuthRoutingModule {\n static withConfig(config?: Partial<DaffAuthRoutingConfig>): ModuleWithProviders<DaffAuthRoutingModule> {\n return {\n ngModule: DaffAuthRoutingModule,\n providers: [\n provideDaffAuthRoutingConfig(config),\n ],\n };\n }\n}\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport {\n ActivatedRoute,\n Router,\n} from '@angular/router';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport { EMPTY } from 'rxjs';\nimport {\n filter,\n switchMap,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffAuthActions,\n DaffAuthLoginActionTypes,\n DaffAuthLoginActions,\n DaffAuthRegisterActionTypes,\n DaffAuthRegisterActions,\n DaffAuthResetPasswordActionTypes,\n DaffAuthResetPasswordActions,\n} from '@daffodil/auth/state';\n\nimport {\n DaffAuthRoutingConfig,\n DAFF_AUTH_ROUTING_CONFIG,\n} from '../config/public_api';\n\n/**\n * Redirects the user to certain pages based on certain auth actions.\n */\n@Injectable()\nexport class DaffAuthRedirectEffects {\n constructor(\n private actions$: Actions<DaffAuthLoginActions | DaffAuthActions | DaffAuthRegisterActions | DaffAuthResetPasswordActions>,\n private router: Router,\n private route: ActivatedRoute,\n @Inject(DAFF_AUTH_ROUTING_CONFIG) private config: DaffAuthRoutingConfig,\n ) {}\n\n redirectAfterLoginOrRegister$ = createEffect(() => this.actions$.pipe(\n ofType(\n DaffAuthLoginActionTypes.LoginSuccessAction,\n DaffAuthRegisterActionTypes.RegisterSuccessAction,\n DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction,\n ),\n filter((action) => {\n if ((action.type === DaffAuthRegisterActionTypes.RegisterSuccessAction || action.type === DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction) && !action.token) {\n return false;\n }\n return true;\n }),\n tap((action) => {\n this.router.navigateByUrl(this.route.snapshot.queryParamMap.get(this.config.redirectUrlParam) || this.config.authCompleteRedirectPath);\n }),\n switchMap(() => EMPTY),\n ), { dispatch: false });\n}\n","import {\n NgModule,\n inject,\n} from '@angular/core';\nimport {\n ActivatedRoute,\n Router,\n} from '@angular/router';\nimport { EffectsModule } from '@ngrx/effects';\n\nimport { DAFF_AUTH_UNAUTHENTICATED_HOOKS } from '@daffodil/auth/state';\n\nimport { DAFF_AUTH_ROUTING_CONFIG } from './config/public_api';\nimport { DaffAuthRedirectEffects } from './effects/redirect.effects';\nimport { daffAuthRoutingRedirectUnauthenticatedHookFactory } from './helpers/public_api';\n\n\n@NgModule({\n imports: [\n EffectsModule.forFeature([\n DaffAuthRedirectEffects,\n ]),\n ],\n providers: [\n {\n provide: DAFF_AUTH_UNAUTHENTICATED_HOOKS,\n multi: true,\n useFactory: () =>\n daffAuthRoutingRedirectUnauthenticatedHookFactory(\n inject(Router),\n inject(ActivatedRoute),\n inject(DAFF_AUTH_ROUTING_CONFIG),\n ),\n },\n ],\n})\nexport class DaffAuthRoutingRedirectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AAEO,MAAM,EACX,KAAK,EAAE,kCAAkC;AACzC;;AAEG;AACH,QAAQ,EAAE,yCAAyC,GACpD,GAAG,0BAA0B,CAC5B,oCAAoC,EACpC,EAAE,OAAO,EAAE,MAAM,GAAG,EAAE;;MCwBX,eAAe,CAAA;IAC1B,WACU,CAAA,UAAoC,EACpC,OAA+B,EAC/B,MAAc,EACd,KAAY,EACqB,YAA8B,EACnB,WAAmB,EAAA;QAL/D,IAAU,CAAA,UAAA,GAAV,UAAU;QACV,IAAO,CAAA,OAAA,GAAP,OAAO;QACP,IAAM,CAAA,MAAA,GAAN,MAAM;QACN,IAAK,CAAA,KAAA,GAAL,KAAK;QAC4B,IAAY,CAAA,YAAA,GAAZ,YAAY;QACD,IAAW,CAAA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C,CAAA;AACJ,yBAAA;AACF,qBAAA;AACF,iBAAA;;;ACnCD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"daffodil-auth-routing.mjs","sources":["../../../libs/auth/routing/src/guards/member-only-guard-redirect.token.ts","../../../libs/auth/routing/src/guards/member-only.guard.ts","../../../libs/auth/routing/src/guards/guest-only-guard-redirect.token.ts","../../../libs/auth/routing/src/guards/guest-only.guard.ts","../../../libs/auth/routing/src/config/default.ts","../../../libs/auth/routing/src/config/token.ts","../../../libs/auth/routing/src/guards/reset-password.guard.ts","../../../libs/auth/routing/src/helpers/redirect-unauthenticated-hook-factory.ts","../../../libs/auth/routing/src/module.ts","../../../libs/auth/routing/src/effects/redirect.effects.ts","../../../libs/auth/routing/src/redirect.module.ts","../../../libs/auth/routing/src/daffodil-auth-routing.ts"],"sourcesContent":["import { createSingleInjectionToken } from '@daffodil/core';\n\nexport const {\n token: DaffAuthMemberOnlyGuardRedirectUrl,\n /**\n * Provider function for {@link DaffAuthMemberOnlyGuardRedirectUrl}.\n */\n provider: provideDaffAuthMemberOnlyGuardRedirectUrl,\n} = createSingleInjectionToken<string>(\n 'DaffAuthMemberOnlyGuardRedirectUrl',\n { factory: () => '/' },\n);\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { Store } from '@ngrx/store';\nimport {\n Observable,\n of,\n} from 'rxjs';\nimport {\n catchError,\n map,\n tap,\n} from 'rxjs/operators';\n\nimport { DaffAuthStorageService } from '@daffodil/auth';\nimport {\n DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES,\n DaffAuthDriverTokenCheck,\n} from '@daffodil/auth/driver';\nimport {\n DAFF_AUTH_ERROR_MATCHER,\n DaffAuthGuardLogout,\n} from '@daffodil/auth/state';\nimport { DaffError } from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport { DaffAuthMemberOnlyGuardRedirectUrl } from './member-only-guard-redirect.token';\n\n\n@Injectable({\n providedIn: 'any',\n})\nexport class MemberOnlyGuard {\n constructor(\n private tokenCheck: DaffAuthDriverTokenCheck,\n private storage: DaffAuthStorageService,\n private router: Router,\n private store: Store,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n @Inject(DaffAuthMemberOnlyGuardRedirectUrl) private redirectUrl: string,\n ) {}\n\n canActivate(): Observable<boolean> {\n return this.isAuthenticated().pipe(\n tap(result => {\n if (!result) {\n this.router.navigateByUrl(this.redirectUrl);\n }\n }),\n );\n }\n\n private isAuthenticated(): Observable<boolean> {\n return this.tokenCheck.check().pipe(\n map(() => true),\n catchError((error: DaffError) => {\n if (DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES[error.code]) {\n this.store.dispatch(new DaffAuthGuardLogout(this.errorMatcher(error)));\n }\n return of(false);\n }),\n );\n }\n}\n","import { createSingleInjectionToken } from '@daffodil/core';\n\nexport const {\n token: DaffAuthGuestOnlyGuardRedirectUrl,\n /**\n * Provider function for {@link DaffAuthGuestOnlyGuardRedirectUrl}.\n */\n provider: provideDaffAuthGuestOnlyGuardRedirectUrl,\n} = createSingleInjectionToken<string>(\n 'DaffAuthGuestOnlyGuardRedirectUrl',\n { factory: () => '/' },\n);\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { Store } from '@ngrx/store';\nimport {\n Observable,\n of,\n} from 'rxjs';\nimport {\n catchError,\n map,\n tap,\n} from 'rxjs/operators';\n\nimport { DaffAuthStorageService } from '@daffodil/auth';\nimport {\n DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES,\n DaffAuthDriverTokenCheck,\n} from '@daffodil/auth/driver';\nimport {\n DAFF_AUTH_ERROR_MATCHER,\n DaffAuthGuardLogout,\n} from '@daffodil/auth/state';\nimport { DaffError } from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport { DaffAuthGuestOnlyGuardRedirectUrl } from './guest-only-guard-redirect.token';\n\n@Injectable({\n providedIn: 'any',\n})\nexport class GuestOnlyGuard {\n constructor(\n private tokenCheck: DaffAuthDriverTokenCheck,\n private storage: DaffAuthStorageService,\n private router: Router,\n private store: Store,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n @Inject(DaffAuthGuestOnlyGuardRedirectUrl) private redirectUrl: string,\n ) {}\n\n canActivate(): Observable<boolean> {\n return this.isUnauthenticated().pipe(\n tap(result => {\n if (!result) {\n this.router.navigateByUrl(this.redirectUrl);\n }\n }),\n );\n }\n\n private isUnauthenticated(): Observable<boolean> {\n return this.tokenCheck.check().pipe(\n map(() => false),\n catchError((error: DaffError) => {\n if (DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES[error.code]) {\n this.store.dispatch(new DaffAuthGuardLogout(this.errorMatcher(error)));\n }\n return of(true);\n }),\n );\n }\n}\n","import { DaffAuthRoutingConfig } from './interface';\n\nexport const DAFF_AUTH_ROUTING_CONFIG_DEFAULT: DaffAuthRoutingConfig = {\n resetPasswordTokenParam: 'token',\n redirectUrlParam: 'redirect',\n authCompleteRedirectPath: '/',\n logoutRedirectPath: '/',\n tokenExpirationRedirectPath: '/',\n};\n","import { createConfigInjectionToken } from '@daffodil/core';\n\nimport { DAFF_AUTH_ROUTING_CONFIG_DEFAULT } from './default';\nimport { DaffAuthRoutingConfig } from './interface';\n\nexport const {\n /**\n * The token used to provide @daffodil/auth/routing config data.\n */\n token: DAFF_AUTH_ROUTING_CONFIG,\n /**\n * Provider function for {@link DAFF_AUTH_ROUTING_CONFIG}.\n */\n provider: provideDaffAuthRoutingConfig,\n} = createConfigInjectionToken<DaffAuthRoutingConfig>(DAFF_AUTH_ROUTING_CONFIG_DEFAULT, 'DAFF_AUTH_ROUTING_CONFIG');\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport { ActivatedRouteSnapshot } from '@angular/router';\nimport {\n Observable,\n of,\n} from 'rxjs';\n\nimport {\n DaffAuthFacade,\n DaffResetPasswordLanding,\n} from '@daffodil/auth/state';\n\nimport {\n DaffAuthRoutingConfig,\n DAFF_AUTH_ROUTING_CONFIG,\n} from '../config/public_api';\n\n@Injectable({\n providedIn: 'any',\n})\nexport class DaffAuthResetPasswordGuard {\n constructor(\n private facade: DaffAuthFacade,\n @Inject(DAFF_AUTH_ROUTING_CONFIG) private config: DaffAuthRoutingConfig,\n ) {}\n\n canActivate(route: ActivatedRouteSnapshot): Observable<boolean> {\n const token = route.queryParamMap.get(this.config.resetPasswordTokenParam);\n\n if (!token) {\n return of(false);\n }\n\n this.facade.dispatch(new DaffResetPasswordLanding(token));\n\n return of(true);\n }\n}\n","import {\n ActivatedRoute,\n Router,\n} from '@angular/router';\nimport {\n from,\n of,\n} from 'rxjs';\n\nimport {\n DaffAuthActionTypes,\n DaffAuthLoginActionTypes,\n DaffAuthUnauthenticatedHook,\n} from '@daffodil/auth/state';\n\nimport { DaffAuthRoutingConfig } from '../config/public_api';\n\nexport function daffAuthRoutingRedirectUnauthenticatedHookFactory(router: Router, route: ActivatedRoute, config: DaffAuthRoutingConfig): DaffAuthUnauthenticatedHook {\n return (trigger) => {\n switch (trigger) {\n case DaffAuthLoginActionTypes.LogoutSuccessAction:\n return from(router.navigateByUrl(route.snapshot.queryParamMap.get(config.redirectUrlParam) || config.logoutRedirectPath));\n\n case DaffAuthActionTypes.AuthCheckFailureAction:\n case DaffAuthActionTypes.AuthGuardLogoutAction:\n return from(router.navigateByUrl(route.snapshot.queryParamMap.get(config.redirectUrlParam) || config.tokenExpirationRedirectPath));\n\n default:\n return of(null);\n }\n };\n}\n","import {\n ModuleWithProviders,\n NgModule,\n} from '@angular/core';\n\nimport {\n DaffAuthRoutingConfig,\n provideDaffAuthRoutingConfig,\n} from './config/public_api';\nimport {\n DaffAuthResetPasswordGuard,\n GuestOnlyGuard,\n MemberOnlyGuard,\n} from './guards/public_api';\n\n@NgModule({\n providers: [\n DaffAuthResetPasswordGuard,\n MemberOnlyGuard,\n GuestOnlyGuard,\n ],\n})\nexport class DaffAuthRoutingModule {\n static withConfig(config?: Partial<DaffAuthRoutingConfig>): ModuleWithProviders<DaffAuthRoutingModule> {\n return {\n ngModule: DaffAuthRoutingModule,\n providers: [\n provideDaffAuthRoutingConfig(config),\n ],\n };\n }\n}\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport {\n ActivatedRoute,\n Router,\n} from '@angular/router';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport { EMPTY } from 'rxjs';\nimport {\n filter,\n switchMap,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffAuthActions,\n DaffAuthLoginActionTypes,\n DaffAuthLoginActions,\n DaffAuthRegisterActionTypes,\n DaffAuthRegisterActions,\n DaffAuthResetPasswordActionTypes,\n DaffAuthResetPasswordActions,\n} from '@daffodil/auth/state';\n\nimport {\n DaffAuthRoutingConfig,\n DAFF_AUTH_ROUTING_CONFIG,\n} from '../config/public_api';\n\n/**\n * Redirects the user to certain pages based on certain auth actions.\n */\n@Injectable()\nexport class DaffAuthRedirectEffects {\n constructor(\n private actions$: Actions<DaffAuthLoginActions | DaffAuthActions | DaffAuthRegisterActions | DaffAuthResetPasswordActions>,\n private router: Router,\n private route: ActivatedRoute,\n @Inject(DAFF_AUTH_ROUTING_CONFIG) private config: DaffAuthRoutingConfig,\n ) {}\n\n redirectAfterLoginOrRegister$ = createEffect(() => this.actions$.pipe(\n ofType(\n DaffAuthLoginActionTypes.LoginSuccessAction,\n DaffAuthRegisterActionTypes.RegisterSuccessAction,\n DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction,\n ),\n filter((action) => {\n if ((action.type === DaffAuthRegisterActionTypes.RegisterSuccessAction || action.type === DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction) && !action.token) {\n return false;\n }\n return true;\n }),\n tap((action) => {\n this.router.navigateByUrl(this.route.snapshot.queryParamMap.get(this.config.redirectUrlParam) || this.config.authCompleteRedirectPath);\n }),\n switchMap(() => EMPTY),\n ), { dispatch: false });\n}\n","import {\n NgModule,\n inject,\n} from '@angular/core';\nimport {\n ActivatedRoute,\n Router,\n} from '@angular/router';\nimport { EffectsModule } from '@ngrx/effects';\n\nimport { DAFF_AUTH_UNAUTHENTICATED_HOOKS } from '@daffodil/auth/state';\n\nimport { DAFF_AUTH_ROUTING_CONFIG } from './config/public_api';\nimport { DaffAuthRedirectEffects } from './effects/redirect.effects';\nimport { daffAuthRoutingRedirectUnauthenticatedHookFactory } from './helpers/public_api';\n\n\n@NgModule({\n imports: [\n EffectsModule.forFeature([\n DaffAuthRedirectEffects,\n ]),\n ],\n providers: [\n {\n provide: DAFF_AUTH_UNAUTHENTICATED_HOOKS,\n multi: true,\n useFactory: () =>\n daffAuthRoutingRedirectUnauthenticatedHookFactory(\n inject(Router),\n inject(ActivatedRoute),\n inject(DAFF_AUTH_ROUTING_CONFIG),\n ),\n },\n ],\n})\nexport class DaffAuthRoutingRedirectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AAEO,MAAM,EACX,KAAK,EAAE,kCAAkC;AACzC;;AAEG;AACH,QAAQ,EAAE,yCAAyC,GACpD,GAAG,0BAA0B,CAC5B,oCAAoC,EACpC,EAAE,OAAO,EAAE,MAAM,GAAG,EAAE;;MCwBX,eAAe,CAAA;IAC1B,WAAA,CACU,UAAoC,EACpC,OAA+B,EAC/B,MAAc,EACd,KAAY,EACqB,YAA8B,EACnB,WAAmB,EAAA;QAL/D,IAAA,CAAA,UAAU,GAAV,UAAU;QACV,IAAA,CAAA,OAAO,GAAP,OAAO;QACP,IAAA,CAAA,MAAM,GAAN,MAAM;QACN,IAAA,CAAA,KAAK,GAAL,KAAK;QAC4B,IAAA,CAAA,YAAY,GAAZ,YAAY;QACD,IAAA,CAAA,WAAW,GAAX,WAAW;IAC9D;IAEH,WAAW,GAAA;QACT,OAAO,IAAI,CAAC,eAAe,EAAE,CAAC,IAAI,CAChC,GAAG,CAAC,MAAM,IAA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yBAAA;AACF,qBAAA;AACF,iBAAA;;;ACnCD;;AAEG;;;;"}
|
|
@@ -14,10 +14,10 @@ class MockDaffAuthFacade {
|
|
|
14
14
|
}
|
|
15
15
|
dispatch(action) { }
|
|
16
16
|
;
|
|
17
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
18
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
17
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MockDaffAuthFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
18
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MockDaffAuthFacade, providedIn: 'root' }); }
|
|
19
19
|
}
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MockDaffAuthFacade, decorators: [{
|
|
21
21
|
type: Injectable,
|
|
22
22
|
args: [{ providedIn: 'root' }]
|
|
23
23
|
}] });
|
|
@@ -32,10 +32,10 @@ class MockDaffAuthLoginFacade {
|
|
|
32
32
|
}
|
|
33
33
|
dispatch(action) { }
|
|
34
34
|
;
|
|
35
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
36
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
35
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MockDaffAuthLoginFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
36
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MockDaffAuthLoginFacade, providedIn: 'root' }); }
|
|
37
37
|
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MockDaffAuthLoginFacade, decorators: [{
|
|
39
39
|
type: Injectable,
|
|
40
40
|
args: [{ providedIn: 'root' }]
|
|
41
41
|
}] });
|
|
@@ -50,10 +50,10 @@ class MockDaffAuthRegisterFacade {
|
|
|
50
50
|
}
|
|
51
51
|
dispatch(action) { }
|
|
52
52
|
;
|
|
53
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
54
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
53
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MockDaffAuthRegisterFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
54
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MockDaffAuthRegisterFacade, providedIn: 'root' }); }
|
|
55
55
|
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MockDaffAuthRegisterFacade, decorators: [{
|
|
57
57
|
type: Injectable,
|
|
58
58
|
args: [{ providedIn: 'root' }]
|
|
59
59
|
}] });
|
|
@@ -69,25 +69,25 @@ class MockDaffAuthResetPasswordFacade {
|
|
|
69
69
|
}
|
|
70
70
|
dispatch(action) { }
|
|
71
71
|
;
|
|
72
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
73
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
72
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MockDaffAuthResetPasswordFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
73
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MockDaffAuthResetPasswordFacade, providedIn: 'root' }); }
|
|
74
74
|
}
|
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MockDaffAuthResetPasswordFacade, decorators: [{
|
|
76
76
|
type: Injectable,
|
|
77
77
|
args: [{ providedIn: 'root' }]
|
|
78
78
|
}] });
|
|
79
79
|
|
|
80
80
|
class DaffAuthStateTestingModule {
|
|
81
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
82
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
83
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
81
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthStateTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
82
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthStateTestingModule }); }
|
|
83
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthStateTestingModule, providers: [
|
|
84
84
|
{ provide: DaffAuthFacade, useExisting: MockDaffAuthFacade },
|
|
85
85
|
{ provide: DaffAuthLoginFacade, useExisting: MockDaffAuthLoginFacade },
|
|
86
86
|
{ provide: DaffAuthRegisterFacade, useExisting: MockDaffAuthRegisterFacade },
|
|
87
87
|
{ provide: DaffAuthResetPasswordFacade, useExisting: MockDaffAuthResetPasswordFacade },
|
|
88
88
|
] }); }
|
|
89
89
|
}
|
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthStateTestingModule, decorators: [{
|
|
91
91
|
type: NgModule,
|
|
92
92
|
args: [{
|
|
93
93
|
providers: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-auth-state-testing.mjs","sources":["../../../libs/auth/state/testing/src/mock-auth-facade.ts","../../../libs/auth/state/testing/src/mock-login-facade.ts","../../../libs/auth/state/testing/src/mock-register-facade.ts","../../../libs/auth/state/testing/src/mock-reset-password-facade.ts","../../../libs/auth/state/testing/src/auth-testing.module.ts","../../../libs/auth/state/testing/src/daffodil-auth-state-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { DaffAuthFacadeInterface } from '@daffodil/auth/state';\nimport { DaffStateError } from '@daffodil/core/state';\n\n/**\n * @inheritdoc\n */\n@Injectable({ providedIn: 'root' })\nexport class MockDaffAuthFacade implements DaffAuthFacadeInterface {\n loading$ = new BehaviorSubject<boolean>(false);\n errors$ = new BehaviorSubject<DaffStateError[]>([]);\n loggedIn$ = new BehaviorSubject<boolean>(false);\n\n dispatch(action: Action) {};\n}\n","import { Injectable } from '@angular/core';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { DaffAuthLoginFacadeInterface } from '@daffodil/auth/state';\nimport { DaffStateError } from '@daffodil/core/state';\n\n/**\n * @inheritdoc\n */\n@Injectable({ providedIn: 'root' })\nexport class MockDaffAuthLoginFacade implements DaffAuthLoginFacadeInterface {\n loading$ = new BehaviorSubject<boolean>(false);\n errors$ = new BehaviorSubject<DaffStateError[]>([]);\n\n dispatch(action: Action) {};\n}\n","import { Injectable } from '@angular/core';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { DaffAuthRegisterFacadeInterface } from '@daffodil/auth/state';\nimport { DaffStateError } from '@daffodil/core/state';\n\n/**\n * @inheritdoc\n */\n@Injectable({ providedIn: 'root' })\nexport class MockDaffAuthRegisterFacade implements DaffAuthRegisterFacadeInterface {\n loading$ = new BehaviorSubject<boolean>(false);\n errors$ = new BehaviorSubject<DaffStateError[]>([]);\n\n dispatch(action: Action) {};\n}\n","import { Injectable } from '@angular/core';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { DaffAuthResetPasswordFacadeInterface } from '@daffodil/auth/state';\nimport { DaffStateError } from '@daffodil/core/state';\n\n/**\n * @inheritdoc\n */\n@Injectable({ providedIn: 'root' })\nexport class MockDaffAuthResetPasswordFacade implements DaffAuthResetPasswordFacadeInterface {\n token$ = new BehaviorSubject<string>('');\n loading$ = new BehaviorSubject<boolean>(false);\n errors$ = new BehaviorSubject<DaffStateError[]>([]);\n\n dispatch(action: Action) {};\n}\n","import { NgModule } from '@angular/core';\n\nimport {\n DaffAuthFacade,\n DaffAuthLoginFacade,\n DaffAuthRegisterFacade,\n DaffAuthResetPasswordFacade,\n} from '@daffodil/auth/state';\n\nimport { MockDaffAuthFacade } from './mock-auth-facade';\nimport { MockDaffAuthLoginFacade } from './mock-login-facade';\nimport { MockDaffAuthRegisterFacade } from './mock-register-facade';\nimport { MockDaffAuthResetPasswordFacade } from './mock-reset-password-facade';\n\n@NgModule({\n providers: [\n { provide: DaffAuthFacade, useExisting: MockDaffAuthFacade },\n { provide: DaffAuthLoginFacade, useExisting: MockDaffAuthLoginFacade },\n { provide: DaffAuthRegisterFacade, useExisting: MockDaffAuthRegisterFacade },\n { provide: DaffAuthResetPasswordFacade, useExisting: MockDaffAuthResetPasswordFacade },\n ],\n})\nexport class DaffAuthStateTestingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAOA;;AAEG;MAEU,kBAAkB,CAAA;AAD/B,IAAA,WAAA,GAAA;AAEE,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,eAAe,CAAU,KAAK,CAAC;AAC9C,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,eAAe,CAAmB,EAAE,CAAC;AACnD,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,eAAe,CAAU,KAAK,CAAC;AAGhD;IADC,QAAQ,CAAC,MAAc,EAAA;;
|
|
1
|
+
{"version":3,"file":"daffodil-auth-state-testing.mjs","sources":["../../../libs/auth/state/testing/src/mock-auth-facade.ts","../../../libs/auth/state/testing/src/mock-login-facade.ts","../../../libs/auth/state/testing/src/mock-register-facade.ts","../../../libs/auth/state/testing/src/mock-reset-password-facade.ts","../../../libs/auth/state/testing/src/auth-testing.module.ts","../../../libs/auth/state/testing/src/daffodil-auth-state-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { DaffAuthFacadeInterface } from '@daffodil/auth/state';\nimport { DaffStateError } from '@daffodil/core/state';\n\n/**\n * @inheritdoc\n */\n@Injectable({ providedIn: 'root' })\nexport class MockDaffAuthFacade implements DaffAuthFacadeInterface {\n loading$ = new BehaviorSubject<boolean>(false);\n errors$ = new BehaviorSubject<DaffStateError[]>([]);\n loggedIn$ = new BehaviorSubject<boolean>(false);\n\n dispatch(action: Action) {};\n}\n","import { Injectable } from '@angular/core';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { DaffAuthLoginFacadeInterface } from '@daffodil/auth/state';\nimport { DaffStateError } from '@daffodil/core/state';\n\n/**\n * @inheritdoc\n */\n@Injectable({ providedIn: 'root' })\nexport class MockDaffAuthLoginFacade implements DaffAuthLoginFacadeInterface {\n loading$ = new BehaviorSubject<boolean>(false);\n errors$ = new BehaviorSubject<DaffStateError[]>([]);\n\n dispatch(action: Action) {};\n}\n","import { Injectable } from '@angular/core';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { DaffAuthRegisterFacadeInterface } from '@daffodil/auth/state';\nimport { DaffStateError } from '@daffodil/core/state';\n\n/**\n * @inheritdoc\n */\n@Injectable({ providedIn: 'root' })\nexport class MockDaffAuthRegisterFacade implements DaffAuthRegisterFacadeInterface {\n loading$ = new BehaviorSubject<boolean>(false);\n errors$ = new BehaviorSubject<DaffStateError[]>([]);\n\n dispatch(action: Action) {};\n}\n","import { Injectable } from '@angular/core';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { DaffAuthResetPasswordFacadeInterface } from '@daffodil/auth/state';\nimport { DaffStateError } from '@daffodil/core/state';\n\n/**\n * @inheritdoc\n */\n@Injectable({ providedIn: 'root' })\nexport class MockDaffAuthResetPasswordFacade implements DaffAuthResetPasswordFacadeInterface {\n token$ = new BehaviorSubject<string>('');\n loading$ = new BehaviorSubject<boolean>(false);\n errors$ = new BehaviorSubject<DaffStateError[]>([]);\n\n dispatch(action: Action) {};\n}\n","import { NgModule } from '@angular/core';\n\nimport {\n DaffAuthFacade,\n DaffAuthLoginFacade,\n DaffAuthRegisterFacade,\n DaffAuthResetPasswordFacade,\n} from '@daffodil/auth/state';\n\nimport { MockDaffAuthFacade } from './mock-auth-facade';\nimport { MockDaffAuthLoginFacade } from './mock-login-facade';\nimport { MockDaffAuthRegisterFacade } from './mock-register-facade';\nimport { MockDaffAuthResetPasswordFacade } from './mock-reset-password-facade';\n\n@NgModule({\n providers: [\n { provide: DaffAuthFacade, useExisting: MockDaffAuthFacade },\n { provide: DaffAuthLoginFacade, useExisting: MockDaffAuthLoginFacade },\n { provide: DaffAuthRegisterFacade, useExisting: MockDaffAuthRegisterFacade },\n { provide: DaffAuthResetPasswordFacade, useExisting: MockDaffAuthResetPasswordFacade },\n ],\n})\nexport class DaffAuthStateTestingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAOA;;AAEG;MAEU,kBAAkB,CAAA;AAD/B,IAAA,WAAA,GAAA;AAEE,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,eAAe,CAAU,KAAK,CAAC;AAC9C,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,eAAe,CAAmB,EAAE,CAAC;AACnD,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,eAAe,CAAU,KAAK,CAAC;AAGhD,IAAA;IADC,QAAQ,CAAC,MAAc,EAAA,EAAG;;iIALf,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAlB,uBAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,cADL,MAAM,EAAA,CAAA,CAAA;;2FACnB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACHlC;;AAEG;MAEU,uBAAuB,CAAA;AADpC,IAAA,WAAA,GAAA;AAEE,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,eAAe,CAAU,KAAK,CA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E,2BAA2B,EAAE,WAAW,EAAE,+BAA+B,EAAE;AACvF,SAAA,EAAA,CAAA,CAAA;;2FAEU,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBARtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,SAAS,EAAE;AACT,wBAAA,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,kBAAkB,EAAE;AAC5D,wBAAA,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,uBAAuB,EAAE;AACtE,wBAAA,EAAE,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,0BAA0B,EAAE;AAC5E,wBAAA,EAAE,OAAO,EAAE,2BAA2B,EAAE,WAAW,EAAE,+BAA+B,EAAE;AACvF,qBAAA;AACF,iBAAA;;;ACrBD;;AAEG;;;;"}
|
|
@@ -507,10 +507,10 @@ class DaffAuthFacade {
|
|
|
507
507
|
dispatch(action) {
|
|
508
508
|
this.store.dispatch(action);
|
|
509
509
|
}
|
|
510
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
511
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
510
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
511
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthFacade, providedIn: 'root' }); }
|
|
512
512
|
}
|
|
513
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
513
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthFacade, decorators: [{
|
|
514
514
|
type: Injectable,
|
|
515
515
|
args: [{
|
|
516
516
|
providedIn: 'root',
|
|
@@ -530,10 +530,10 @@ class DaffAuthLoginFacade {
|
|
|
530
530
|
dispatch(action) {
|
|
531
531
|
this.store.dispatch(action);
|
|
532
532
|
}
|
|
533
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
534
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
533
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthLoginFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
534
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthLoginFacade, providedIn: 'root' }); }
|
|
535
535
|
}
|
|
536
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthLoginFacade, decorators: [{
|
|
537
537
|
type: Injectable,
|
|
538
538
|
args: [{
|
|
539
539
|
providedIn: 'root',
|
|
@@ -553,10 +553,10 @@ class DaffAuthRegisterFacade {
|
|
|
553
553
|
dispatch(action) {
|
|
554
554
|
this.store.dispatch(action);
|
|
555
555
|
}
|
|
556
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
557
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
556
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthRegisterFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
557
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthRegisterFacade, providedIn: 'root' }); }
|
|
558
558
|
}
|
|
559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
559
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthRegisterFacade, decorators: [{
|
|
560
560
|
type: Injectable,
|
|
561
561
|
args: [{
|
|
562
562
|
providedIn: 'root',
|
|
@@ -577,10 +577,10 @@ class DaffAuthResetPasswordFacade {
|
|
|
577
577
|
dispatch(action) {
|
|
578
578
|
this.store.dispatch(action);
|
|
579
579
|
}
|
|
580
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
581
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
580
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthResetPasswordFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
581
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthResetPasswordFacade, providedIn: 'root' }); }
|
|
582
582
|
}
|
|
583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
583
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthResetPasswordFacade, decorators: [{
|
|
584
584
|
type: Injectable,
|
|
585
585
|
args: [{
|
|
586
586
|
providedIn: 'root',
|
|
@@ -693,10 +693,10 @@ class DaffAuthEffects {
|
|
|
693
693
|
this.clientCache.reset();
|
|
694
694
|
}), switchMap(() => EMPTY)), { dispatch: false });
|
|
695
695
|
}
|
|
696
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
697
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
696
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthEffects, deps: [{ token: i1$1.Actions }, { token: i2.DaffAuthDriverTokenCheck }, { token: DAFF_AUTH_ERROR_MATCHER }, { token: i2$1.DaffAuthStorageService }, { token: DAFF_AUTH_STATE_CONFIG }, { token: DAFF_DRIVER_HTTP_CLIENT_CACHE_SERVICE }, { token: DAFF_AUTH_UNAUTHENTICATED_HOOK }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
697
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthEffects }); }
|
|
698
698
|
}
|
|
699
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
699
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthEffects, decorators: [{
|
|
700
700
|
type: Injectable
|
|
701
701
|
}], ctorParameters: () => [{ type: i1$1.Actions }, { type: i2.DaffAuthDriverTokenCheck }, { type: undefined, decorators: [{
|
|
702
702
|
type: Inject,
|
|
@@ -739,10 +739,10 @@ class DaffAuthLoginEffects {
|
|
|
739
739
|
}
|
|
740
740
|
})))));
|
|
741
741
|
}
|
|
742
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
743
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
742
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthLoginEffects, deps: [{ token: i1$1.Actions }, { token: DaffLoginDriver }, { token: DAFF_AUTH_ERROR_MATCHER }, { token: i2$1.DaffAuthStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
743
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthLoginEffects }); }
|
|
744
744
|
}
|
|
745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
745
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthLoginEffects, decorators: [{
|
|
746
746
|
type: Injectable
|
|
747
747
|
}], ctorParameters: () => [{ type: i1$1.Actions }, { type: undefined, decorators: [{
|
|
748
748
|
type: Inject,
|
|
@@ -769,10 +769,10 @@ class DaffAuthRegisterEffects {
|
|
|
769
769
|
}
|
|
770
770
|
})))));
|
|
771
771
|
}
|
|
772
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
773
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
772
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthRegisterEffects, deps: [{ token: i1$1.Actions }, { token: DaffRegisterDriver }, { token: DAFF_AUTH_ERROR_MATCHER }, { token: i2$1.DaffAuthStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
773
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthRegisterEffects }); }
|
|
774
774
|
}
|
|
775
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
775
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthRegisterEffects, decorators: [{
|
|
776
776
|
type: Injectable
|
|
777
777
|
}], ctorParameters: () => [{ type: i1$1.Actions }, { type: undefined, decorators: [{
|
|
778
778
|
type: Inject,
|
|
@@ -800,10 +800,10 @@ class DaffAuthResetPasswordEffects {
|
|
|
800
800
|
}
|
|
801
801
|
})))));
|
|
802
802
|
}
|
|
803
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
804
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
803
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthResetPasswordEffects, deps: [{ token: i1$1.Actions }, { token: DaffResetPasswordDriver }, { token: DAFF_AUTH_ERROR_MATCHER }, { token: i2$1.DaffAuthStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
804
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthResetPasswordEffects }); }
|
|
805
805
|
}
|
|
806
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthResetPasswordEffects, decorators: [{
|
|
807
807
|
type: Injectable
|
|
808
808
|
}], ctorParameters: () => [{ type: i1$1.Actions }, { type: undefined, decorators: [{
|
|
809
809
|
type: Inject,
|
|
@@ -843,9 +843,9 @@ class DaffAuthStateModule {
|
|
|
843
843
|
],
|
|
844
844
|
};
|
|
845
845
|
}
|
|
846
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
847
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
848
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
846
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
847
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthStateModule, imports: [i1.StoreFeatureModule, i1$1.EffectsFeatureModule] }); }
|
|
848
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthStateModule, providers: [
|
|
849
849
|
{
|
|
850
850
|
provide: DAFF_AUTH_UNAUTHENTICATED_HOOKS,
|
|
851
851
|
useFactory: (() => {
|
|
@@ -870,7 +870,7 @@ class DaffAuthStateModule {
|
|
|
870
870
|
DaffAuthResetPasswordEffects,
|
|
871
871
|
])] }); }
|
|
872
872
|
}
|
|
873
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
873
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthStateModule, decorators: [{
|
|
874
874
|
type: NgModule,
|
|
875
875
|
args: [{
|
|
876
876
|
imports: [
|