@daffodil/auth 0.91.0 → 0.92.3-rc.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.
@@ -1,7 +1,7 @@
1
1
  import { daffOperationInitialState, daffOperationFailed, daffCompleteOperation, daffStartResolution, daffStartMutation, daffOperationStateSelectorFactory, daffTransformErrorToStateError, daffComposeReducers } from '@daffodil/core/state';
2
2
  import { createMultiInjectionToken, createConfigInjectionToken, createSingleInjectionToken, DaffStorageServiceError, DaffServerSideStorageError } from '@daffodil/core';
3
3
  import * as i1 from '@ngrx/store';
4
- import { createFeatureSelector, createSelector, select, combineReducers, StoreModule } from '@ngrx/store';
4
+ import { defaultMemoize, createFeatureSelector, createSelector, select, combineReducers, StoreModule } from '@ngrx/store';
5
5
  import * as i0 from '@angular/core';
6
6
  import { Injectable, inject, Inject, NgModule } from '@angular/core';
7
7
  import * as i1$1 from '@ngrx/effects';
@@ -425,10 +425,7 @@ const daffAuthReducers = {
425
425
  /**
426
426
  * Feature State Selector
427
427
  */
428
- const getDaffAuthFeatureStateSelector = (() => {
429
- let cache;
430
- return () => cache = cache || createFeatureSelector(DAFF_AUTH_STORE_FEATURE_KEY);
431
- })();
428
+ const getDaffAuthFeatureStateSelector = defaultMemoize(() => createFeatureSelector(DAFF_AUTH_STORE_FEATURE_KEY)).memoized;
432
429
 
433
430
  const createAuthSelectors = () => {
434
431
  const selectAuthState = createSelector(getDaffAuthFeatureStateSelector(), state => state.auth);
@@ -439,10 +436,7 @@ const createAuthSelectors = () => {
439
436
  selectAuthLoggedIn,
440
437
  };
441
438
  };
442
- const daffAuthSelectorFactory = (() => {
443
- let cache;
444
- return () => cache = cache || createAuthSelectors();
445
- })();
439
+ const daffAuthSelectorFactory = defaultMemoize(() => createAuthSelectors()).memoized;
446
440
 
447
441
  const createLoginSelectors = () => {
448
442
  const selectAuthLoginState = createSelector(getDaffAuthFeatureStateSelector(), state => state.login);
@@ -451,10 +445,7 @@ const createLoginSelectors = () => {
451
445
  selectAuthLoginState,
452
446
  };
453
447
  };
454
- const daffAuthLoginSelectorFactory = (() => {
455
- let cache;
456
- return () => cache = cache || createLoginSelectors();
457
- })();
448
+ const daffAuthLoginSelectorFactory = defaultMemoize(() => createLoginSelectors()).memoized;
458
449
 
459
450
  const createRegisterSelectors = () => {
460
451
  const selectAuthRegisterState = createSelector(getDaffAuthFeatureStateSelector(), state => state.register);
@@ -463,10 +454,7 @@ const createRegisterSelectors = () => {
463
454
  selectAuthRegisterState,
464
455
  };
465
456
  };
466
- const daffAuthRegisterSelectorFactory = (() => {
467
- let cache;
468
- return () => cache = cache || createRegisterSelectors();
469
- })();
457
+ const daffAuthRegisterSelectorFactory = defaultMemoize(() => createRegisterSelectors()).memoized;
470
458
 
471
459
  const createResetPasswordSelectors = () => {
472
460
  const selectAuthResetPasswordState = createSelector(getDaffAuthFeatureStateSelector(), state => state.resetPassword);
@@ -477,21 +465,15 @@ const createResetPasswordSelectors = () => {
477
465
  selectAuthResetPasswordToken,
478
466
  };
479
467
  };
480
- const daffAuthResetPasswordSelectorFactory = (() => {
481
- let cache;
482
- return () => cache = cache || createResetPasswordSelectors();
483
- })();
484
-
485
- const getDaffAuthSelectors = (() => {
486
- let cache;
487
- return () => cache = cache || {
488
- ...daffAuthSelectorFactory(),
489
- ...daffAuthLoginSelectorFactory(),
490
- ...daffAuthRegisterSelectorFactory(),
491
- ...daffAuthResetPasswordSelectorFactory(),
492
- selectAuthFeatureState: getDaffAuthFeatureStateSelector(),
493
- };
494
- })();
468
+ const daffAuthResetPasswordSelectorFactory = defaultMemoize(() => createResetPasswordSelectors()).memoized;
469
+
470
+ const getDaffAuthSelectors = defaultMemoize(() => ({
471
+ ...daffAuthSelectorFactory(),
472
+ ...daffAuthLoginSelectorFactory(),
473
+ ...daffAuthRegisterSelectorFactory(),
474
+ ...daffAuthResetPasswordSelectorFactory(),
475
+ selectAuthFeatureState: getDaffAuthFeatureStateSelector(),
476
+ })).memoized;
495
477
 
496
478
  /**
497
479
  * @inheritdoc
@@ -507,10 +489,10 @@ class DaffAuthFacade {
507
489
  dispatch(action) {
508
490
  this.store.dispatch(action);
509
491
  }
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' }); }
492
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
493
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthFacade, providedIn: 'root' }); }
512
494
  }
513
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthFacade, decorators: [{
495
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthFacade, decorators: [{
514
496
  type: Injectable,
515
497
  args: [{
516
498
  providedIn: 'root',
@@ -530,10 +512,10 @@ class DaffAuthLoginFacade {
530
512
  dispatch(action) {
531
513
  this.store.dispatch(action);
532
514
  }
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' }); }
515
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthLoginFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
516
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthLoginFacade, providedIn: 'root' }); }
535
517
  }
536
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthLoginFacade, decorators: [{
518
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthLoginFacade, decorators: [{
537
519
  type: Injectable,
538
520
  args: [{
539
521
  providedIn: 'root',
@@ -553,10 +535,10 @@ class DaffAuthRegisterFacade {
553
535
  dispatch(action) {
554
536
  this.store.dispatch(action);
555
537
  }
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' }); }
538
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthRegisterFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
539
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthRegisterFacade, providedIn: 'root' }); }
558
540
  }
559
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthRegisterFacade, decorators: [{
541
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthRegisterFacade, decorators: [{
560
542
  type: Injectable,
561
543
  args: [{
562
544
  providedIn: 'root',
@@ -577,10 +559,10 @@ class DaffAuthResetPasswordFacade {
577
559
  dispatch(action) {
578
560
  this.store.dispatch(action);
579
561
  }
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' }); }
562
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthResetPasswordFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
563
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthResetPasswordFacade, providedIn: 'root' }); }
582
564
  }
583
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthResetPasswordFacade, decorators: [{
565
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthResetPasswordFacade, decorators: [{
584
566
  type: Injectable,
585
567
  args: [{
586
568
  providedIn: 'root',
@@ -693,10 +675,10 @@ class DaffAuthEffects {
693
675
  this.clientCache.reset();
694
676
  }), switchMap(() => EMPTY)), { dispatch: false });
695
677
  }
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 }); }
678
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", 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 }); }
679
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthEffects }); }
698
680
  }
699
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthEffects, decorators: [{
681
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthEffects, decorators: [{
700
682
  type: Injectable
701
683
  }], ctorParameters: () => [{ type: i1$1.Actions }, { type: i2.DaffAuthDriverTokenCheck }, { type: undefined, decorators: [{
702
684
  type: Inject,
@@ -739,10 +721,10 @@ class DaffAuthLoginEffects {
739
721
  }
740
722
  })))));
741
723
  }
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 }); }
724
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthLoginEffects, deps: [{ token: i1$1.Actions }, { token: DaffLoginDriver }, { token: DAFF_AUTH_ERROR_MATCHER }, { token: i2$1.DaffAuthStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
725
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthLoginEffects }); }
744
726
  }
745
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthLoginEffects, decorators: [{
727
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthLoginEffects, decorators: [{
746
728
  type: Injectable
747
729
  }], ctorParameters: () => [{ type: i1$1.Actions }, { type: undefined, decorators: [{
748
730
  type: Inject,
@@ -769,10 +751,10 @@ class DaffAuthRegisterEffects {
769
751
  }
770
752
  })))));
771
753
  }
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 }); }
754
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthRegisterEffects, deps: [{ token: i1$1.Actions }, { token: DaffRegisterDriver }, { token: DAFF_AUTH_ERROR_MATCHER }, { token: i2$1.DaffAuthStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
755
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthRegisterEffects }); }
774
756
  }
775
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthRegisterEffects, decorators: [{
757
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthRegisterEffects, decorators: [{
776
758
  type: Injectable
777
759
  }], ctorParameters: () => [{ type: i1$1.Actions }, { type: undefined, decorators: [{
778
760
  type: Inject,
@@ -800,10 +782,10 @@ class DaffAuthResetPasswordEffects {
800
782
  }
801
783
  })))));
802
784
  }
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 }); }
785
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthResetPasswordEffects, deps: [{ token: i1$1.Actions }, { token: DaffResetPasswordDriver }, { token: DAFF_AUTH_ERROR_MATCHER }, { token: i2$1.DaffAuthStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
786
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthResetPasswordEffects }); }
805
787
  }
806
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthResetPasswordEffects, decorators: [{
788
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthResetPasswordEffects, decorators: [{
807
789
  type: Injectable
808
790
  }], ctorParameters: () => [{ type: i1$1.Actions }, { type: undefined, decorators: [{
809
791
  type: Inject,
@@ -843,9 +825,9 @@ class DaffAuthStateModule {
843
825
  ],
844
826
  };
845
827
  }
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: [
828
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
829
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthStateModule, imports: [i1.StoreFeatureModule, i1$1.EffectsFeatureModule] }); }
830
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthStateModule, providers: [
849
831
  {
850
832
  provide: DAFF_AUTH_UNAUTHENTICATED_HOOKS,
851
833
  useFactory: (() => {
@@ -870,7 +852,7 @@ class DaffAuthStateModule {
870
852
  DaffAuthResetPasswordEffects,
871
853
  ])] }); }
872
854
  }
873
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DaffAuthStateModule, decorators: [{
855
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DaffAuthStateModule, decorators: [{
874
856
  type: NgModule,
875
857
  args: [{
876
858
  imports: [
@@ -1 +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/token/extra.token.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/injection-tokens/unauthenticated/hooks.token.ts","../../../libs/auth/state/src/injection-tokens/error-matcher.token.ts","../../../libs/auth/state/src/injection-tokens/unauthenticated/hook.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/reducers/token/reducers.token.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 ResetToUnauthenticatedAction = '[@daffodil/auth] Reset To Unauthenticated Action',\n AuthStorageFailureAction = '[@daffodil/auth] Auth Storage Failure Action',\n AuthGuardLogoutAction = '[@daffodil/auth] Auth Guard Logout Action',\n AuthServerSideAction = '[@daffodil/auth] Auth Server Side 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}\n\n/*\n * An action triggered when the authenicated status of the user is invalidated for some reason.\n * That reason could be a logout, auth token check failure, or an unauthorized error.\n */\nexport class DaffAuthResetToUnauthenticated implements Action {\n readonly type = DaffAuthActionTypes.ResetToUnauthenticatedAction;\n\n constructor(\n public reason: Action['type'],\n ) {}\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 * An action triggered when an auth token is cleared from storage by a routing guard.\n */\nexport class DaffAuthGuardLogout implements Action {\n readonly type = DaffAuthActionTypes.AuthGuardLogoutAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/*\n * An action triggered when an invalid operation is performed in the server environment.\n * A common example is trying to access the auth token from storage.\n */\nexport class DaffAuthServerSide implements Action {\n readonly type = DaffAuthActionTypes.AuthServerSideAction;\n\n constructor(public errorMessage: DaffStateError) {}\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\nexport type DaffAuthActions =\n | DaffAuthResetToUnauthenticated\n | DaffAuthStorageFailure\n | DaffAuthGuardLogout\n | DaffAuthServerSide\n | DaffAuthCheck\n | DaffAuthCheckSuccess\n | DaffAuthCheckFailure;\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 constructor(public token?: string) {}\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 { daffOperationInitialState } from '@daffodil/core/state';\n\nimport { DaffAuthReducerState } from './auth-reducer-state.interface';\n\nexport const daffAuthInitialState: DaffAuthReducerState = {\n ...daffOperationInitialState,\n loggedIn: false,\n};\n","import {\n daffCompleteOperation,\n daffOperationFailed,\n daffStartResolution,\n} from '@daffodil/core/state';\n\nimport { daffAuthInitialState } from './auth-initial-state';\nimport { DaffAuthReducerState } from './auth-reducer-state.interface';\nimport {\n DaffAuthActionTypes,\n DaffAuthActions,\n DaffAuthLoginActionTypes,\n DaffAuthLoginActions,\n DaffAuthRegisterActionTypes,\n DaffAuthRegisterSuccess,\n DaffAuthResetPasswordActionTypes,\n DaffAuthResetPasswordActions,\n} from '../../actions/public_api';\n\nexport function daffAuthReducer(\n state = daffAuthInitialState,\n action: DaffAuthActions | DaffAuthLoginActions | DaffAuthRegisterSuccess | DaffAuthResetPasswordActions,\n): DaffAuthReducerState {\n switch (action.type) {\n case DaffAuthActionTypes.AuthCheckAction:\n return daffStartResolution(state);\n\n case DaffAuthActionTypes.AuthCheckSuccessAction:\n return {\n ...daffCompleteOperation(state),\n loggedIn: true,\n };\n\n case DaffAuthActionTypes.AuthCheckFailureAction:\n return {\n ...daffOperationFailed([action.errorMessage], state),\n loggedIn: false,\n };\n\n case DaffAuthActionTypes.AuthGuardLogoutAction:\n return {\n ...daffCompleteOperation(state),\n daffErrors: [action.errorMessage],\n loggedIn: false,\n };\n\n case DaffAuthActionTypes.AuthServerSideAction:\n case DaffAuthActionTypes.AuthStorageFailureAction:\n return daffOperationFailed([action.errorMessage], state);\n\n case DaffAuthLoginActionTypes.LoginSuccessAction:\n return {\n ...state,\n loggedIn: true,\n };\n\n case DaffAuthRegisterActionTypes.RegisterSuccessAction:\n case DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction:\n return action.token ? {\n ...state,\n loggedIn: true,\n } : state;\n\n case DaffAuthLoginActionTypes.LogoutSuccessAction:\n return {\n ...state,\n loggedIn: false,\n };\n\n default:\n return state;\n }\n}\n","import { daffOperationInitialState } from '@daffodil/core/state';\n\nimport { DaffAuthLoginReducerState } from './login-reducer-state.interface';\n\nexport const daffAuthLoginInitialState: DaffAuthLoginReducerState = daffOperationInitialState;\n","import {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\nimport {\n daffCompleteOperation,\n daffOperationFailed,\n daffStartMutation,\n} from '@daffodil/core/state';\n\nimport { daffAuthLoginInitialState } from './login-initial-state';\nimport { DaffAuthLoginReducerState } from './login-reducer-state.interface';\nimport {\n DaffAuthLoginActionTypes,\n DaffAuthLoginActions,\n} from '../../actions/public_api';\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 daffStartMutation(state);\n\n case DaffAuthLoginActionTypes.LoginSuccessAction:\n case DaffAuthLoginActionTypes.LogoutSuccessAction:\n return daffCompleteOperation(state);\n\n case DaffAuthLoginActionTypes.LoginFailureAction:\n case DaffAuthLoginActionTypes.LogoutFailureAction:\n return daffOperationFailed([action.errorMessage], state);\n\n default:\n return state;\n }\n}\n","import { daffOperationInitialState } from '@daffodil/core/state';\n\nimport { DaffAuthRegisterReducerState } from './register-reducer-state.interface';\n\nexport const daffAuthRegisterInitialState: DaffAuthRegisterReducerState = daffOperationInitialState;\n","import { DaffAccountRegistration } from '@daffodil/auth';\nimport {\n daffCompleteOperation,\n daffOperationFailed,\n daffStartMutation,\n} from '@daffodil/core/state';\n\nimport { daffAuthRegisterInitialState } from './register-initial-state';\nimport { DaffAuthRegisterReducerState } from './register-reducer-state.interface';\nimport {\n DaffAuthRegisterActionTypes,\n DaffAuthRegisterActions,\n} from '../../actions/public_api';\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 daffStartMutation(state);\n\n case DaffAuthRegisterActionTypes.RegisterSuccessAction:\n return daffCompleteOperation(state);\n\n case DaffAuthRegisterActionTypes.RegisterFailureAction:\n return daffOperationFailed([action.errorMessage], state);\n\n default:\n return state;\n }\n}\n","import { daffOperationInitialState } from '@daffodil/core/state';\n\nimport { DaffAuthResetPasswordReducerState } from './state.interface';\n\nexport const daffAuthResetPasswordInitialState: DaffAuthResetPasswordReducerState = {\n ...daffOperationInitialState,\n token: null,\n};\n","import { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport {\n daffCompleteOperation,\n daffOperationFailed,\n daffStartMutation,\n} from '@daffodil/core/state';\n\nimport { daffAuthResetPasswordInitialState } from './initial-state';\nimport { DaffAuthResetPasswordReducerState } from './state.interface';\nimport {\n DaffAuthResetPasswordActionTypes,\n DaffAuthResetPasswordActions,\n} from '../../actions/public_api';\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 daffStartMutation(state);\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailSuccessAction:\n return daffCompleteOperation(state);\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordFailureAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailFailureAction:\n return daffOperationFailed([action.errorMessage], state);\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordLandingAction:\n return {\n ...state,\n token: action.token,\n };\n\n default:\n return state;\n }\n}\n","import { ActionReducer } from '@ngrx/store';\n\nimport { createMultiInjectionToken } from '@daffodil/core';\n\nimport { DaffAuthFeatureState } from '../auth-feature-state.interface';\n\nexport const {\n /**\n * A token to hold the injectable extra reducers.\n *\n * Prefer using {@link daffAuthProvideExtraReducers}.\n */\n token: DAFF_AUTH_EXTRA_REDUCERS,\n\n /**\n * Provides additional reducers that run after the standard Daffodil auth reducers.\n *\n * @example\n * ```ts\n * providers: [\n * ...daffAuthProvideExtraReducers(\n * myReducer1,\n * myReducer2\n * )\n * ]\n * ```\n */\n provider: daffAuthProvideExtraReducers,\n} = createMultiInjectionToken<ActionReducer<DaffAuthFeatureState>>('DAFF_AUTH_EXTRA_REDUCERS');\n","export const DAFF_AUTH_STORE_FEATURE_KEY = 'daffAuth';\n","import { ActionReducerMap } from '@ngrx/store';\n\nimport { daffAuthReducer } from './auth/public_api';\nimport { DaffAuthFeatureState } from './auth-feature-state.interface';\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 {\n daffOperationStateSelectorFactory,\n DaffOperationStateSelectors,\n} from '@daffodil/core/state';\n\nimport {\n DaffAuthReducerState,\n DaffAuthStateRootSlice,\n} from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface AuthSelectors extends DaffOperationStateSelectors<DaffAuthStateRootSlice, DaffAuthReducerState> {\n selectAuthState: MemoizedSelector<DaffAuthStateRootSlice, DaffAuthReducerState>;\n selectAuthLoggedIn: MemoizedSelector<DaffAuthStateRootSlice, boolean>;\n}\n\nconst createAuthSelectors = () => {\n const selectAuthState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.auth,\n );\n\n const selectAuthLoggedIn = createSelector(\n selectAuthState,\n state => state.loggedIn,\n );\n\n return {\n ...daffOperationStateSelectorFactory<DaffAuthStateRootSlice, DaffAuthReducerState>(selectAuthState),\n selectAuthState,\n selectAuthLoggedIn,\n };\n};\n\nexport const daffAuthSelectorFactory = (() => {\n let cache;\n return (): AuthSelectors =>\n cache = cache || createAuthSelectors();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport {\n daffOperationStateSelectorFactory,\n DaffOperationStateSelectors,\n} from '@daffodil/core/state';\n\nimport {\n DaffAuthLoginReducerState,\n DaffAuthStateRootSlice,\n} from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthLoginSelectors extends DaffOperationStateSelectors<DaffAuthStateRootSlice, DaffAuthLoginReducerState> {\n selectAuthLoginState: MemoizedSelector<DaffAuthStateRootSlice, DaffAuthLoginReducerState>;\n}\n\nconst createLoginSelectors = () => {\n const selectAuthLoginState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.login,\n );\n\n\n return {\n ...daffOperationStateSelectorFactory<DaffAuthStateRootSlice, DaffAuthLoginReducerState>(selectAuthLoginState),\n selectAuthLoginState,\n };\n};\n\nexport const daffAuthLoginSelectorFactory = (() => {\n let cache;\n return (): DaffAuthLoginSelectors =>\n cache = cache || createLoginSelectors();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport {\n daffOperationStateSelectorFactory,\n DaffOperationStateSelectors,\n} from '@daffodil/core/state';\n\nimport {\n DaffAuthRegisterReducerState,\n DaffAuthStateRootSlice,\n} from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthRegisterSelectors extends DaffOperationStateSelectors<DaffAuthStateRootSlice, DaffAuthRegisterReducerState> {\n selectAuthRegisterState: MemoizedSelector<DaffAuthStateRootSlice, DaffAuthRegisterReducerState>;\n}\n\nconst createRegisterSelectors = () => {\n const selectAuthRegisterState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.register,\n );\n\n return {\n ...daffOperationStateSelectorFactory<DaffAuthStateRootSlice, DaffAuthRegisterReducerState>(selectAuthRegisterState),\n selectAuthRegisterState,\n };\n};\n\nexport const daffAuthRegisterSelectorFactory = (() => {\n let cache;\n return (): DaffAuthRegisterSelectors =>\n cache = cache || createRegisterSelectors();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport {\n daffOperationStateSelectorFactory,\n DaffOperationStateSelectors,\n} from '@daffodil/core/state';\n\nimport {\n DaffAuthResetPasswordReducerState,\n DaffAuthStateRootSlice,\n} from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthResetPasswordSelectors extends DaffOperationStateSelectors<DaffAuthStateRootSlice, DaffAuthResetPasswordReducerState> {\n selectAuthResetPasswordState: MemoizedSelector<DaffAuthStateRootSlice, DaffAuthResetPasswordReducerState>;\n selectAuthResetPasswordToken: MemoizedSelector<DaffAuthStateRootSlice, DaffAuthResetPasswordInfo['token']>;\n}\n\nconst createResetPasswordSelectors = (): DaffAuthResetPasswordSelectors => {\n const selectAuthResetPasswordState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.resetPassword,\n );\n\n const selectAuthResetPasswordToken = createSelector(\n selectAuthResetPasswordState,\n state => state.token,\n );\n\n return {\n ...daffOperationStateSelectorFactory<DaffAuthStateRootSlice, DaffAuthResetPasswordReducerState>(selectAuthResetPasswordState),\n selectAuthResetPasswordState,\n selectAuthResetPasswordToken,\n };\n};\n\nexport const daffAuthResetPasswordSelectorFactory = (() => {\n let cache;\n return (): DaffAuthResetPasswordSelectors =>\n cache = cache || createResetPasswordSelectors();\n})();\n","import { MemoizedSelector } from '@ngrx/store';\n\nimport {\n daffAuthSelectorFactory,\n AuthSelectors,\n} from './auth/auth.selector';\nimport { getDaffAuthFeatureStateSelector } from './auth-feature.selector';\nimport {\n daffAuthLoginSelectorFactory,\n DaffAuthLoginSelectors,\n} from './login/login.selector';\nimport {\n daffAuthRegisterSelectorFactory,\n DaffAuthRegisterSelectors,\n} from './register/register.selector';\nimport {\n DaffAuthResetPasswordSelectors,\n daffAuthResetPasswordSelectorFactory,\n} from './reset-password/selector';\nimport { DaffAuthFeatureState } from '../reducers/public_api';\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 ...daffAuthSelectorFactory(),\n ...daffAuthLoginSelectorFactory(),\n ...daffAuthRegisterSelectorFactory(),\n ...daffAuthResetPasswordSelectorFactory(),\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 { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFacadeInterface } from './facade.interface';\nimport { DaffAuthStateRootSlice } from '../../reducers/public_api';\nimport { daffAuthSelectorFactory } from '../../selectors/auth/auth.selector';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthFacade implements DaffAuthFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n loggedIn$: Observable<boolean>;\n\n constructor(private store: Store<DaffAuthStateRootSlice>) {\n const {\n selectLoading,\n selectErrors,\n selectAuthLoggedIn,\n } = daffAuthSelectorFactory();\n\n this.loading$ = this.store.pipe(select(selectLoading));\n this.errors$ = this.store.pipe(select(selectErrors));\n this.loggedIn$ = this.store.pipe(select(selectAuthLoggedIn));\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 { DaffAuthLoginFacadeInterface } from './facade.interface';\nimport { DaffAuthStateRootSlice } from '../../reducers/public_api';\nimport { daffAuthLoginSelectorFactory } from '../../selectors/login/login.selector';\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<DaffAuthStateRootSlice>) {\n const {\n selectLoading,\n selectErrors,\n } = daffAuthLoginSelectorFactory();\n\n this.loading$ = this.store.pipe(select(selectLoading));\n this.errors$ = this.store.pipe(select(selectErrors));\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 { DaffAuthRegisterFacadeInterface } from './facade.interface';\nimport { DaffAuthStateRootSlice } from '../../reducers/public_api';\nimport { daffAuthRegisterSelectorFactory } from '../../selectors/register/register.selector';\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<DaffAuthStateRootSlice>) {\n const {\n selectLoading,\n selectErrors,\n } = daffAuthRegisterSelectorFactory();\n\n this.loading$ = this.store.pipe(select(selectLoading));\n this.errors$ = this.store.pipe(select(selectErrors));\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 { DaffAuthResetPasswordFacadeInterface } from './facade.interface';\nimport { DaffAuthStateRootSlice } from '../../reducers/public_api';\nimport { daffAuthResetPasswordSelectorFactory } from '../../selectors/reset-password/selector';\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<DaffAuthStateRootSlice>) {\n const {\n selectLoading,\n selectErrors,\n selectAuthResetPasswordToken,\n } = daffAuthResetPasswordSelectorFactory();\n\n this.token$ = this.store.pipe(select(selectAuthResetPasswordToken));\n\n this.loading$ = this.store.pipe(select(selectLoading));\n this.errors$ = this.store.pipe(select(selectErrors));\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 { createConfigInjectionToken } from '@daffodil/core';\n\nimport { daffAuthStateDefaultConfig } from './default';\nimport { DaffAuthStateConfig } from './type';\n\nexport const {\n token: DAFF_AUTH_STATE_CONFIG,\n /**\n * Provider function for {@link DAFF_AUTH_STATE_CONFIG}.\n */\n provider: provideDaffAuthStateConfig,\n} = createConfigInjectionToken<DaffAuthStateConfig>(daffAuthStateDefaultConfig, 'DAFF_AUTH_STATE_CONFIG');\n","import { createMultiInjectionToken } from '@daffodil/core';\n\nimport { DaffAuthUnauthenticatedHook } from './hook.type';\n\nexport const {\n /**\n * A token to hold the unauthenticated hooks.\n * See {@link DaffAuthUnauthenticatedHook}.\n *\n * Prefer using {@link daffAuthProvideUnauthenticatedHooks}.\n */\n token: DAFF_AUTH_UNAUTHENTICATED_HOOKS,\n /**\n * Provides {@link DAFF_AUTH_UNAUTHENTICATED_HOOKS}.\n *\n * @example\n * ```ts\n * providers: [\n * ...daffAuthProvideUnauthenticatedHooks(\n * myHook1,\n * myHook2\n * )\n * ]\n * ```\n */\n provider: daffAuthProvideUnauthenticatedHooks,\n} = createMultiInjectionToken<DaffAuthUnauthenticatedHook>('DAFF_AUTH_UNAUTHENTICATED_HOOKS');\n\n","import { createSingleInjectionToken } from '@daffodil/core';\nimport { daffTransformErrorToStateError } from '@daffodil/core/state';\n\nexport const {\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 */\n token: DAFF_AUTH_ERROR_MATCHER,\n /**\n * Provider function for {@link DAFF_AUTH_ERROR_MATCHER}.\n */\n provider: provideDaffAuthErrorMatcher,\n} = createSingleInjectionToken<typeof daffTransformErrorToStateError>(\n 'DAFF_AUTH_ERROR_MATCHER',\n { factory: () => daffTransformErrorToStateError },\n);\n","import { inject } from '@angular/core';\nimport { combineLatest } from 'rxjs';\n\nimport { createSingleInjectionToken } from '@daffodil/core';\n\nimport { DaffAuthUnauthenticatedHook } from './hook.type';\nimport { DAFF_AUTH_UNAUTHENTICATED_HOOKS } from './hooks.token';\n\nexport const {\n /**\n * An internal token to hold the unauthenticated hook.\n * Combines the multi provided hooks into a single function.\n *\n * @docs-private\n */\n token: DAFF_AUTH_UNAUTHENTICATED_HOOK,\n /**\n * Provider function for {@link DAFF_AUTH_UNAUTHENTICATED_HOOK}.\n */\n provider: provideDaffAuthUnauthenticatedHook,\n} = createSingleInjectionToken<DaffAuthUnauthenticatedHook>(\n 'DAFF_AUTH_UNAUTHENTICATED_HOOK',\n {\n factory: () => {\n const hooks = inject(DAFF_AUTH_UNAUTHENTICATED_HOOKS);\n return (action) => combineLatest(hooks.map((hook) => hook(action)));\n },\n },\n);\n","import {\n Injectable,\n Inject,\n NgZone,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n EMPTY,\n Observable,\n} from 'rxjs';\nimport {\n switchMap,\n catchError,\n map,\n filter,\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 DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\nimport {\n DAFF_DRIVER_HTTP_CLIENT_CACHE_SERVICE,\n DaffDriverHttpClientCacheServiceInterface,\n} from '@daffodil/driver';\n\nimport {\n DaffAuthActionTypes,\n DaffAuthCheckSuccess,\n DaffAuthCheckFailure,\n DaffAuthCheck,\n DaffAuthStorageFailure,\n DaffAuthServerSide,\n DaffAuthLoginActionTypes,\n DaffAuthActions,\n DaffAuthLoginActions,\n DaffAuthResetToUnauthenticated,\n} from '../actions/public_api';\nimport {\n DaffAuthStateConfig,\n DAFF_AUTH_STATE_CONFIG,\n} from '../config/public_api';\nimport {\n DAFF_AUTH_ERROR_MATCHER,\n DaffAuthUnauthenticatedHook,\n} from '../injection-tokens/public_api';\nimport { DAFF_AUTH_UNAUTHENTICATED_HOOK } from '../injection-tokens/unauthenticated/hook.token';\n\n@Injectable()\nexport class DaffAuthEffects {\n constructor(\n private actions$: Actions<DaffAuthActions | DaffAuthLoginActions>,\n private tokenCheck: DaffAuthDriverTokenCheck,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n @Inject(DAFF_AUTH_STATE_CONFIG) private config: DaffAuthStateConfig,\n @Inject(DAFF_DRIVER_HTTP_CLIENT_CACHE_SERVICE) private clientCache: DaffDriverHttpClientCacheServiceInterface,\n @Inject(DAFF_AUTH_UNAUTHENTICATED_HOOK) private unauthenticatedHook: DaffAuthUnauthenticatedHook,\n private zone: NgZone,\n ) {}\n\n check$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthActionTypes.AuthCheckAction),\n switchMap((action) =>\n this.tokenCheck.check().pipe(\n map(() => new DaffAuthCheckSuccess()),\n catchError((error: DaffError) => of(new DaffAuthCheckFailure(this.errorMatcher(error)))),\n ),\n ),\n ));\n\n // this needs to be defined after `check$` or else the driver call won't be run\n authCheckInterval$ = createEffect(() =>\n new Observable<DaffAuthCheck>((subscriber) => {\n const intervalId = this.zone.runOutsideAngular(() =>\n setInterval(() => {\n subscriber.next(new DaffAuthCheck());\n }, this.config.checkInterval),\n );\n\n subscriber.next(new DaffAuthCheck());\n\n return () => {\n clearInterval(intervalId);\n };\n }).pipe(\n filter(() => !!this.storage.getAuthToken()),\n catchError((error: Error) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(new DaffAuthServerSide(this.errorMatcher(error)));\n\n case error instanceof DaffStorageServiceError:\n return of(new DaffAuthStorageFailure(this.errorMatcher(error)));\n\n default:\n return EMPTY;\n }\n }),\n ),\n );\n\n resetToUnauthenticated$ = createEffect(() => this.actions$.pipe(\n ofType(\n DaffAuthActionTypes.AuthCheckFailureAction,\n DaffAuthActionTypes.AuthGuardLogoutAction,\n DaffAuthLoginActionTypes.LogoutSuccessAction,\n ),\n filter((action) => {\n // if the auth check failure is for any reason other than auth failure,\n // such as a network failure, don't reset\n if (\n action.type === DaffAuthActionTypes.AuthCheckFailureAction\n && !DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES[action.errorMessage.code]\n ) {\n return false;\n }\n\n return true;\n }),\n map((action) => new DaffAuthResetToUnauthenticated(action.type)),\n ));\n\n clearClientCache$ = createEffect(() => this.actions$.pipe(\n ofType(\n DaffAuthActionTypes.ResetToUnauthenticatedAction,\n ),\n switchMap((action) => this.unauthenticatedHook(action.reason)),\n tap(() => {\n this.clientCache.reset();\n }),\n switchMap(() => EMPTY),\n ), { dispatch: false });\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport { of } from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n DaffAuthStorageService,\n} from '@daffodil/auth';\nimport {\n DaffLoginDriver,\n DaffLoginServiceInterface,\n} from '@daffodil/auth/driver';\nimport {\n DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthLoginActionTypes,\n DaffAuthLoginSuccess,\n DaffAuthLoginFailure,\n DaffAuthLogoutSuccess,\n DaffAuthLogoutFailure,\n DaffAuthLogout,\n DaffAuthServerSide,\n DaffAuthLoginActions,\n DaffAuthStorageFailure,\n} from '../actions/public_api';\nimport { DAFF_AUTH_ERROR_MATCHER } from '../injection-tokens/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<DaffAuthLoginActions<T, U>>,\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$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LoginAction),\n switchMap((action) =>\n this.loginDriver.login(action.loginInfo)\n .pipe(\n map((resp) => new DaffAuthLoginSuccess<U>(resp)),\n tap((success) => this.storage.setAuthToken(success.auth.token)),\n catchError((error: DaffError) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(new DaffAuthServerSide(this.errorMatcher(error)));\n case error instanceof DaffStorageServiceError:\n default:\n return of(new DaffAuthLoginFailure(this.errorMatcher(error)));\n }\n }),\n ),\n ),\n ));\n\n logout$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LogoutAction),\n switchMap((action: DaffAuthLogout) =>\n this.loginDriver.logout().pipe(\n map(() => new DaffAuthLogoutSuccess()),\n catchError((error: DaffError) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(new DaffAuthServerSide(this.errorMatcher(error)));\n case error instanceof DaffStorageServiceError:\n return of(new DaffAuthStorageFailure(this.errorMatcher(error)));\n default:\n return of(new DaffAuthLogoutFailure(this.errorMatcher(error)));\n }\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 DaffAccountRegistration,\n DaffAuthStorageService,\n} from '@daffodil/auth';\nimport {\n DaffRegisterDriver,\n DaffRegisterServiceInterface,\n} from '@daffodil/auth/driver';\nimport {\n DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthRegisterActionTypes,\n DaffAuthRegisterSuccess,\n DaffAuthRegisterFailure,\n DaffAuthServerSide,\n DaffAuthStorageFailure,\n DaffAuthRegisterActions,\n} from '../actions/public_api';\nimport { DAFF_AUTH_ERROR_MATCHER } from '../injection-tokens/public_api';\n\n@Injectable()\nexport class DaffAuthRegisterEffects<\n T extends DaffAccountRegistration = DaffAccountRegistration,\n> {\n constructor(\n private actions$: Actions<DaffAuthRegisterActions<T>>,\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) =>\n iif(\n () => action.autoLogin,\n defer(() => this.registerDriver.register(action.registration).pipe(\n tap(token => this.storage.setAuthToken(token)),\n map((token) => new DaffAuthRegisterSuccess(token)),\n )),\n defer(() => this.registerDriver.registerOnly(action.registration).pipe(\n map(() => new DaffAuthRegisterSuccess()),\n )),\n ).pipe(\n catchError((error: DaffError) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(\n new DaffAuthServerSide(this.errorMatcher(error)),\n new DaffAuthRegisterFailure(this.errorMatcher(error)),\n );\n\n case error instanceof DaffStorageServiceError:\n return of(\n new DaffAuthStorageFailure(this.errorMatcher(error)),\n new DaffAuthRegisterFailure(this.errorMatcher(error)),\n );\n\n default:\n return of(new DaffAuthRegisterFailure(this.errorMatcher(error)));\n }\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 DaffAuthResetPasswordInfo,\n DaffAuthStorageService,\n} from '@daffodil/auth';\nimport {\n DaffResetPasswordDriver,\n DaffResetPasswordServiceInterface,\n} from '@daffodil/auth/driver';\nimport {\n DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} 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 DaffAuthServerSide,\n DaffAuthStorageFailure,\n} from '../actions/public_api';\nimport { DAFF_AUTH_ERROR_MATCHER } from '../injection-tokens/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 map((token) => new DaffResetPasswordSuccess(token)),\n )),\n defer(() => this.driver.resetPasswordOnly(action.info).pipe(\n map(() => new DaffResetPasswordSuccess()),\n )),\n ).pipe(\n catchError((error: DaffError) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(\n new DaffAuthServerSide(this.errorMatcher(error)),\n new DaffResetPasswordFailure(this.errorMatcher(error)),\n );\n\n case error instanceof DaffStorageServiceError:\n return of(\n new DaffAuthStorageFailure(this.errorMatcher(error)),\n new DaffResetPasswordFailure(this.errorMatcher(error)),\n );\n\n default:\n return of(new DaffResetPasswordFailure(this.errorMatcher(error)));\n }\n }),\n ),\n ),\n ));\n}\n","import { inject } from '@angular/core';\nimport {\n ActionReducer,\n combineReducers,\n} from '@ngrx/store';\n\nimport { createSingleInjectionToken } from '@daffodil/core';\nimport { daffComposeReducers } from '@daffodil/core/state';\n\nimport { DAFF_AUTH_EXTRA_REDUCERS } from './extra.token';\nimport { DaffAuthFeatureState } from '../auth-feature-state.interface';\nimport { daffAuthReducers } from '../auth-reducers';\n\nexport const {\n /**\n * An internal token to hold the Daffodil auth reducers.\n * Includes the extra and standard reducers.\n *\n * @docs-private\n */\n token: DAFF_AUTH_REDUCERS,\n /**\n * Provider function for {@link DAFF_AUTH_REDUCERS}.\n */\n provider: provideDaffAuthReducers,\n} = createSingleInjectionToken<ActionReducer<DaffAuthFeatureState>>(\n 'DAFF_AUTH_REDUCERS',\n {\n factory: () => daffComposeReducers([\n combineReducers(daffAuthReducers),\n ...inject(DAFF_AUTH_EXTRA_REDUCERS),\n ]),\n },\n);\n","import {\n ModuleWithProviders,\n NgModule,\n inject,\n} from '@angular/core';\nimport { EffectsModule } from '@ngrx/effects';\nimport { StoreModule } from '@ngrx/store';\nimport { of } from 'rxjs';\n\nimport { DaffAuthStorageService } from '@daffodil/auth';\n\nimport {\n DaffAuthStateConfig,\n daffAuthStateDefaultConfig,\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_UNAUTHENTICATED_HOOKS,\n DaffAuthUnauthenticatedHook,\n} from './injection-tokens/public_api';\nimport { DAFF_AUTH_STORE_FEATURE_KEY } from './reducers/public_api';\nimport { DAFF_AUTH_REDUCERS } from './reducers/token/reducers.token';\n\n\n@NgModule({\n imports: [\n StoreModule.forFeature(DAFF_AUTH_STORE_FEATURE_KEY, DAFF_AUTH_REDUCERS),\n EffectsModule.forFeature([\n DaffAuthEffects,\n DaffAuthLoginEffects,\n DaffAuthRegisterEffects,\n DaffAuthResetPasswordEffects,\n ]),\n ],\n providers: [\n {\n provide: DAFF_AUTH_UNAUTHENTICATED_HOOKS,\n useFactory: () => {\n const storage = inject(DaffAuthStorageService);\n const hook: DaffAuthUnauthenticatedHook = () => {\n try {\n return of(storage.removeAuthToken());\n } catch {\n return of(null);\n }\n };\n\n return hook;\n },\n multi: true,\n },\n ],\n})\nexport class DaffAuthStateModule {\n static withConfig(config: Partial<DaffAuthStateConfig> = {}): ModuleWithProviders<DaffAuthStateModule> {\n return {\n ngModule: DaffAuthStateModule,\n providers: [\n provideDaffAuthStateConfig({\n ...daffAuthStateDefaultConfig,\n ...config,\n }),\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3","i1","i2"],"mappings":";;;;;;;;;;;;;;;;IAIY;AAAZ,CAAA,UAAY,mBAAmB,EAAA;AAC7B,IAAA,mBAAA,CAAA,8BAAA,CAAA,GAAA,kDAAiF;AACjF,IAAA,mBAAA,CAAA,0BAAA,CAAA,GAAA,8CAAyE;AACzE,IAAA,mBAAA,CAAA,uBAAA,CAAA,GAAA,2CAAmE;AACnE,IAAA,mBAAA,CAAA,sBAAA,CAAA,GAAA,0CAAiE;AACjE,IAAA,mBAAA,CAAA,iBAAA,CAAA,GAAA,oCAAsD;AACtD,IAAA,mBAAA,CAAA,wBAAA,CAAA,GAAA,4CAAqE;AACrE,IAAA,mBAAA,CAAA,wBAAA,CAAA,GAAA,4CAAqE;AACvE,CAAC,EARW,mBAAmB,KAAnB,mBAAmB,GAAA,EAAA,CAAA,CAAA;AAU/B;;;AAGG;MACU,8BAA8B,CAAA;AAGzC,IAAA,WAAA,CACS,MAAsB,EAAA;QAAtB,IAAA,CAAA,MAAM,GAAN,MAAM;AAHN,QAAA,IAAA,CAAA,IAAI,GAAG,mBAAmB,CAAC,4BAA4B;IAI7D;AACJ;AAED;;AAEG;MACU,sBAAsB,CAAA;AAGjC,IAAA,WAAA,CAAmB,YAA4B,EAAA;QAA5B,IAAA,CAAA,YAAY,GAAZ,YAAY;AAFtB,QAAA,IAAA,CAAA,IAAI,GAAG,mBAAmB,CAAC,wBAAwB;IAEV;AACnD;AAED;;AAEG;MACU,mBAAmB,CAAA;AAG9B,IAAA,WAAA,CAAmB,YAA4B,EAAA;QAA5B,IAAA,CAAA,YAAY,GAAZ,YAAY;AAFtB,QAAA,IAAA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AA,OAAO,EAAE,+BAA+B;4BACxC,UAAU,GAAE,MAAK;AACf,gCAAA,MAAM,OAAO,GAAG,MAAM,CAAC,sBAAsB,CAAC;gCAC9C,MAAM,IAAI,IAAgC,MAAK;AAC7C,oCAAA,IAAI;AACF,wCAAA,OAAO,EAAE,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC;oCACtC;AAAE,oCAAA,MAAM;AACN,wCAAA,OAAO,EAAE,CAAC,IAAI,CAAC;oCACjB;AACF,gCAAA,CAAC,CAAA;AAED,gCAAA,OAAO,IAAI;AACb,4BAAA,CAAC,CAAA;AACD,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA;AACF,iBAAA;;;ACxDD;;AAEG;;;;"}
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/token/extra.token.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/injection-tokens/unauthenticated/hooks.token.ts","../../../libs/auth/state/src/injection-tokens/error-matcher.token.ts","../../../libs/auth/state/src/injection-tokens/unauthenticated/hook.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/reducers/token/reducers.token.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 ResetToUnauthenticatedAction = '[@daffodil/auth] Reset To Unauthenticated Action',\n AuthStorageFailureAction = '[@daffodil/auth] Auth Storage Failure Action',\n AuthGuardLogoutAction = '[@daffodil/auth] Auth Guard Logout Action',\n AuthServerSideAction = '[@daffodil/auth] Auth Server Side 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}\n\n/*\n * An action triggered when the authenicated status of the user is invalidated for some reason.\n * That reason could be a logout, auth token check failure, or an unauthorized error.\n */\nexport class DaffAuthResetToUnauthenticated implements Action {\n readonly type = DaffAuthActionTypes.ResetToUnauthenticatedAction;\n\n constructor(\n public reason: Action['type'],\n ) {}\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 * An action triggered when an auth token is cleared from storage by a routing guard.\n */\nexport class DaffAuthGuardLogout implements Action {\n readonly type = DaffAuthActionTypes.AuthGuardLogoutAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/*\n * An action triggered when an invalid operation is performed in the server environment.\n * A common example is trying to access the auth token from storage.\n */\nexport class DaffAuthServerSide implements Action {\n readonly type = DaffAuthActionTypes.AuthServerSideAction;\n\n constructor(public errorMessage: DaffStateError) {}\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\nexport type DaffAuthActions =\n | DaffAuthResetToUnauthenticated\n | DaffAuthStorageFailure\n | DaffAuthGuardLogout\n | DaffAuthServerSide\n | DaffAuthCheck\n | DaffAuthCheckSuccess\n | DaffAuthCheckFailure;\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 constructor(public token?: string) {}\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 { daffOperationInitialState } from '@daffodil/core/state';\n\nimport { DaffAuthReducerState } from './auth-reducer-state.interface';\n\nexport const daffAuthInitialState: DaffAuthReducerState = {\n ...daffOperationInitialState,\n loggedIn: false,\n};\n","import {\n daffCompleteOperation,\n daffOperationFailed,\n daffStartResolution,\n} from '@daffodil/core/state';\n\nimport { daffAuthInitialState } from './auth-initial-state';\nimport { DaffAuthReducerState } from './auth-reducer-state.interface';\nimport {\n DaffAuthActionTypes,\n DaffAuthActions,\n DaffAuthLoginActionTypes,\n DaffAuthLoginActions,\n DaffAuthRegisterActionTypes,\n DaffAuthRegisterSuccess,\n DaffAuthResetPasswordActionTypes,\n DaffAuthResetPasswordActions,\n} from '../../actions/public_api';\n\nexport function daffAuthReducer(\n state = daffAuthInitialState,\n action: DaffAuthActions | DaffAuthLoginActions | DaffAuthRegisterSuccess | DaffAuthResetPasswordActions,\n): DaffAuthReducerState {\n switch (action.type) {\n case DaffAuthActionTypes.AuthCheckAction:\n return daffStartResolution(state);\n\n case DaffAuthActionTypes.AuthCheckSuccessAction:\n return {\n ...daffCompleteOperation(state),\n loggedIn: true,\n };\n\n case DaffAuthActionTypes.AuthCheckFailureAction:\n return {\n ...daffOperationFailed([action.errorMessage], state),\n loggedIn: false,\n };\n\n case DaffAuthActionTypes.AuthGuardLogoutAction:\n return {\n ...daffCompleteOperation(state),\n daffErrors: [action.errorMessage],\n loggedIn: false,\n };\n\n case DaffAuthActionTypes.AuthServerSideAction:\n case DaffAuthActionTypes.AuthStorageFailureAction:\n return daffOperationFailed([action.errorMessage], state);\n\n case DaffAuthLoginActionTypes.LoginSuccessAction:\n return {\n ...state,\n loggedIn: true,\n };\n\n case DaffAuthRegisterActionTypes.RegisterSuccessAction:\n case DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction:\n return action.token ? {\n ...state,\n loggedIn: true,\n } : state;\n\n case DaffAuthLoginActionTypes.LogoutSuccessAction:\n return {\n ...state,\n loggedIn: false,\n };\n\n default:\n return state;\n }\n}\n","import { daffOperationInitialState } from '@daffodil/core/state';\n\nimport { DaffAuthLoginReducerState } from './login-reducer-state.interface';\n\nexport const daffAuthLoginInitialState: DaffAuthLoginReducerState = daffOperationInitialState;\n","import {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\nimport {\n daffCompleteOperation,\n daffOperationFailed,\n daffStartMutation,\n} from '@daffodil/core/state';\n\nimport { daffAuthLoginInitialState } from './login-initial-state';\nimport { DaffAuthLoginReducerState } from './login-reducer-state.interface';\nimport {\n DaffAuthLoginActionTypes,\n DaffAuthLoginActions,\n} from '../../actions/public_api';\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 daffStartMutation(state);\n\n case DaffAuthLoginActionTypes.LoginSuccessAction:\n case DaffAuthLoginActionTypes.LogoutSuccessAction:\n return daffCompleteOperation(state);\n\n case DaffAuthLoginActionTypes.LoginFailureAction:\n case DaffAuthLoginActionTypes.LogoutFailureAction:\n return daffOperationFailed([action.errorMessage], state);\n\n default:\n return state;\n }\n}\n","import { daffOperationInitialState } from '@daffodil/core/state';\n\nimport { DaffAuthRegisterReducerState } from './register-reducer-state.interface';\n\nexport const daffAuthRegisterInitialState: DaffAuthRegisterReducerState = daffOperationInitialState;\n","import { DaffAccountRegistration } from '@daffodil/auth';\nimport {\n daffCompleteOperation,\n daffOperationFailed,\n daffStartMutation,\n} from '@daffodil/core/state';\n\nimport { daffAuthRegisterInitialState } from './register-initial-state';\nimport { DaffAuthRegisterReducerState } from './register-reducer-state.interface';\nimport {\n DaffAuthRegisterActionTypes,\n DaffAuthRegisterActions,\n} from '../../actions/public_api';\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 daffStartMutation(state);\n\n case DaffAuthRegisterActionTypes.RegisterSuccessAction:\n return daffCompleteOperation(state);\n\n case DaffAuthRegisterActionTypes.RegisterFailureAction:\n return daffOperationFailed([action.errorMessage], state);\n\n default:\n return state;\n }\n}\n","import { daffOperationInitialState } from '@daffodil/core/state';\n\nimport { DaffAuthResetPasswordReducerState } from './state.interface';\n\nexport const daffAuthResetPasswordInitialState: DaffAuthResetPasswordReducerState = {\n ...daffOperationInitialState,\n token: null,\n};\n","import { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport {\n daffCompleteOperation,\n daffOperationFailed,\n daffStartMutation,\n} from '@daffodil/core/state';\n\nimport { daffAuthResetPasswordInitialState } from './initial-state';\nimport { DaffAuthResetPasswordReducerState } from './state.interface';\nimport {\n DaffAuthResetPasswordActionTypes,\n DaffAuthResetPasswordActions,\n} from '../../actions/public_api';\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 daffStartMutation(state);\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailSuccessAction:\n return daffCompleteOperation(state);\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordFailureAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailFailureAction:\n return daffOperationFailed([action.errorMessage], state);\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordLandingAction:\n return {\n ...state,\n token: action.token,\n };\n\n default:\n return state;\n }\n}\n","import { ActionReducer } from '@ngrx/store';\n\nimport { createMultiInjectionToken } from '@daffodil/core';\n\nimport { DaffAuthFeatureState } from '../auth-feature-state.interface';\n\nexport const {\n /**\n * A token to hold the injectable extra reducers.\n *\n * Prefer using {@link daffAuthProvideExtraReducers}.\n */\n token: DAFF_AUTH_EXTRA_REDUCERS,\n\n /**\n * Provides additional reducers that run after the standard Daffodil auth reducers.\n *\n * @example\n * ```ts\n * providers: [\n * ...daffAuthProvideExtraReducers(\n * myReducer1,\n * myReducer2\n * )\n * ]\n * ```\n */\n provider: daffAuthProvideExtraReducers,\n} = createMultiInjectionToken<ActionReducer<DaffAuthFeatureState>>('DAFF_AUTH_EXTRA_REDUCERS');\n","export const DAFF_AUTH_STORE_FEATURE_KEY = 'daffAuth';\n","import { ActionReducerMap } from '@ngrx/store';\n\nimport { daffAuthReducer } from './auth/public_api';\nimport { DaffAuthFeatureState } from './auth-feature-state.interface';\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 defaultMemoize,\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: () => MemoizedSelector<Record<string, any>, DaffAuthFeatureState> = defaultMemoize(() => createFeatureSelector<DaffAuthFeatureState>(DAFF_AUTH_STORE_FEATURE_KEY)).memoized;\n","import {\n createSelector,\n MemoizedSelector,\n defaultMemoize,\n} from '@ngrx/store';\n\nimport {\n daffOperationStateSelectorFactory,\n DaffOperationStateSelectors,\n} from '@daffodil/core/state';\n\nimport {\n DaffAuthReducerState,\n DaffAuthStateRootSlice,\n} from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface AuthSelectors extends DaffOperationStateSelectors<DaffAuthStateRootSlice, DaffAuthReducerState> {\n selectAuthState: MemoizedSelector<DaffAuthStateRootSlice, DaffAuthReducerState>;\n selectAuthLoggedIn: MemoizedSelector<DaffAuthStateRootSlice, boolean>;\n}\n\nconst createAuthSelectors = () => {\n const selectAuthState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.auth,\n );\n\n const selectAuthLoggedIn = createSelector(\n selectAuthState,\n state => state.loggedIn,\n );\n\n return {\n ...daffOperationStateSelectorFactory<DaffAuthStateRootSlice, DaffAuthReducerState>(selectAuthState),\n selectAuthState,\n selectAuthLoggedIn,\n };\n};\n\nexport const daffAuthSelectorFactory: () => AuthSelectors = defaultMemoize(() => createAuthSelectors()).memoized;\n","import {\n createSelector,\n MemoizedSelector,\n defaultMemoize,\n} from '@ngrx/store';\n\nimport {\n daffOperationStateSelectorFactory,\n DaffOperationStateSelectors,\n} from '@daffodil/core/state';\n\nimport {\n DaffAuthLoginReducerState,\n DaffAuthStateRootSlice,\n} from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthLoginSelectors extends DaffOperationStateSelectors<DaffAuthStateRootSlice, DaffAuthLoginReducerState> {\n selectAuthLoginState: MemoizedSelector<DaffAuthStateRootSlice, DaffAuthLoginReducerState>;\n}\n\nconst createLoginSelectors = () => {\n const selectAuthLoginState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.login,\n );\n\n\n return {\n ...daffOperationStateSelectorFactory<DaffAuthStateRootSlice, DaffAuthLoginReducerState>(selectAuthLoginState),\n selectAuthLoginState,\n };\n};\n\nexport const daffAuthLoginSelectorFactory: () => DaffAuthLoginSelectors = defaultMemoize(() => createLoginSelectors()).memoized;\n","import {\n createSelector,\n MemoizedSelector,\n defaultMemoize,\n} from '@ngrx/store';\n\nimport {\n daffOperationStateSelectorFactory,\n DaffOperationStateSelectors,\n} from '@daffodil/core/state';\n\nimport {\n DaffAuthRegisterReducerState,\n DaffAuthStateRootSlice,\n} from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthRegisterSelectors extends DaffOperationStateSelectors<DaffAuthStateRootSlice, DaffAuthRegisterReducerState> {\n selectAuthRegisterState: MemoizedSelector<DaffAuthStateRootSlice, DaffAuthRegisterReducerState>;\n}\n\nconst createRegisterSelectors = () => {\n const selectAuthRegisterState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.register,\n );\n\n return {\n ...daffOperationStateSelectorFactory<DaffAuthStateRootSlice, DaffAuthRegisterReducerState>(selectAuthRegisterState),\n selectAuthRegisterState,\n };\n};\n\nexport const daffAuthRegisterSelectorFactory: () => DaffAuthRegisterSelectors = defaultMemoize(() => createRegisterSelectors()).memoized;\n","import {\n createSelector,\n MemoizedSelector,\n defaultMemoize,\n} from '@ngrx/store';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport {\n daffOperationStateSelectorFactory,\n DaffOperationStateSelectors,\n} from '@daffodil/core/state';\n\nimport {\n DaffAuthResetPasswordReducerState,\n DaffAuthStateRootSlice,\n} from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthResetPasswordSelectors extends DaffOperationStateSelectors<DaffAuthStateRootSlice, DaffAuthResetPasswordReducerState> {\n selectAuthResetPasswordState: MemoizedSelector<DaffAuthStateRootSlice, DaffAuthResetPasswordReducerState>;\n selectAuthResetPasswordToken: MemoizedSelector<DaffAuthStateRootSlice, DaffAuthResetPasswordInfo['token']>;\n}\n\nconst createResetPasswordSelectors = (): DaffAuthResetPasswordSelectors => {\n const selectAuthResetPasswordState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.resetPassword,\n );\n\n const selectAuthResetPasswordToken = createSelector(\n selectAuthResetPasswordState,\n state => state.token,\n );\n\n return {\n ...daffOperationStateSelectorFactory<DaffAuthStateRootSlice, DaffAuthResetPasswordReducerState>(selectAuthResetPasswordState),\n selectAuthResetPasswordState,\n selectAuthResetPasswordToken,\n };\n};\n\nexport const daffAuthResetPasswordSelectorFactory: () => DaffAuthResetPasswordSelectors = defaultMemoize(() => createResetPasswordSelectors()).memoized;\n","import {\n MemoizedSelector,\n defaultMemoize,\n} from '@ngrx/store';\n\nimport {\n daffAuthSelectorFactory,\n AuthSelectors,\n} from './auth/auth.selector';\nimport { getDaffAuthFeatureStateSelector } from './auth-feature.selector';\nimport {\n daffAuthLoginSelectorFactory,\n DaffAuthLoginSelectors,\n} from './login/login.selector';\nimport {\n daffAuthRegisterSelectorFactory,\n DaffAuthRegisterSelectors,\n} from './register/register.selector';\nimport {\n DaffAuthResetPasswordSelectors,\n daffAuthResetPasswordSelectorFactory,\n} from './reset-password/selector';\nimport { DaffAuthFeatureState } from '../reducers/public_api';\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: () => DaffAuthSelectors = defaultMemoize(() => ({\n ...daffAuthSelectorFactory(),\n ...daffAuthLoginSelectorFactory(),\n ...daffAuthRegisterSelectorFactory(),\n ...daffAuthResetPasswordSelectorFactory(),\n selectAuthFeatureState: getDaffAuthFeatureStateSelector(),\n})).memoized;\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 { DaffAuthFacadeInterface } from './facade.interface';\nimport { DaffAuthStateRootSlice } from '../../reducers/public_api';\nimport { daffAuthSelectorFactory } from '../../selectors/auth/auth.selector';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthFacade implements DaffAuthFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n loggedIn$: Observable<boolean>;\n\n constructor(private store: Store<DaffAuthStateRootSlice>) {\n const {\n selectLoading,\n selectErrors,\n selectAuthLoggedIn,\n } = daffAuthSelectorFactory();\n\n this.loading$ = this.store.pipe(select(selectLoading));\n this.errors$ = this.store.pipe(select(selectErrors));\n this.loggedIn$ = this.store.pipe(select(selectAuthLoggedIn));\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 { DaffAuthLoginFacadeInterface } from './facade.interface';\nimport { DaffAuthStateRootSlice } from '../../reducers/public_api';\nimport { daffAuthLoginSelectorFactory } from '../../selectors/login/login.selector';\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<DaffAuthStateRootSlice>) {\n const {\n selectLoading,\n selectErrors,\n } = daffAuthLoginSelectorFactory();\n\n this.loading$ = this.store.pipe(select(selectLoading));\n this.errors$ = this.store.pipe(select(selectErrors));\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 { DaffAuthRegisterFacadeInterface } from './facade.interface';\nimport { DaffAuthStateRootSlice } from '../../reducers/public_api';\nimport { daffAuthRegisterSelectorFactory } from '../../selectors/register/register.selector';\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<DaffAuthStateRootSlice>) {\n const {\n selectLoading,\n selectErrors,\n } = daffAuthRegisterSelectorFactory();\n\n this.loading$ = this.store.pipe(select(selectLoading));\n this.errors$ = this.store.pipe(select(selectErrors));\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 { DaffAuthResetPasswordFacadeInterface } from './facade.interface';\nimport { DaffAuthStateRootSlice } from '../../reducers/public_api';\nimport { daffAuthResetPasswordSelectorFactory } from '../../selectors/reset-password/selector';\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<DaffAuthStateRootSlice>) {\n const {\n selectLoading,\n selectErrors,\n selectAuthResetPasswordToken,\n } = daffAuthResetPasswordSelectorFactory();\n\n this.token$ = this.store.pipe(select(selectAuthResetPasswordToken));\n\n this.loading$ = this.store.pipe(select(selectLoading));\n this.errors$ = this.store.pipe(select(selectErrors));\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 { createConfigInjectionToken } from '@daffodil/core';\n\nimport { daffAuthStateDefaultConfig } from './default';\nimport { DaffAuthStateConfig } from './type';\n\nexport const {\n token: DAFF_AUTH_STATE_CONFIG,\n /**\n * Provider function for {@link DAFF_AUTH_STATE_CONFIG}.\n */\n provider: provideDaffAuthStateConfig,\n} = createConfigInjectionToken<DaffAuthStateConfig>(daffAuthStateDefaultConfig, 'DAFF_AUTH_STATE_CONFIG');\n","import { createMultiInjectionToken } from '@daffodil/core';\n\nimport { DaffAuthUnauthenticatedHook } from './hook.type';\n\nexport const {\n /**\n * A token to hold the unauthenticated hooks.\n * See {@link DaffAuthUnauthenticatedHook}.\n *\n * Prefer using {@link daffAuthProvideUnauthenticatedHooks}.\n */\n token: DAFF_AUTH_UNAUTHENTICATED_HOOKS,\n /**\n * Provides {@link DAFF_AUTH_UNAUTHENTICATED_HOOKS}.\n *\n * @example\n * ```ts\n * providers: [\n * ...daffAuthProvideUnauthenticatedHooks(\n * myHook1,\n * myHook2\n * )\n * ]\n * ```\n */\n provider: daffAuthProvideUnauthenticatedHooks,\n} = createMultiInjectionToken<DaffAuthUnauthenticatedHook>('DAFF_AUTH_UNAUTHENTICATED_HOOKS');\n\n","import { createSingleInjectionToken } from '@daffodil/core';\nimport { daffTransformErrorToStateError } from '@daffodil/core/state';\n\nexport const {\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 */\n token: DAFF_AUTH_ERROR_MATCHER,\n /**\n * Provider function for {@link DAFF_AUTH_ERROR_MATCHER}.\n */\n provider: provideDaffAuthErrorMatcher,\n} = createSingleInjectionToken<typeof daffTransformErrorToStateError>(\n 'DAFF_AUTH_ERROR_MATCHER',\n { factory: () => daffTransformErrorToStateError },\n);\n","import { inject } from '@angular/core';\nimport { combineLatest } from 'rxjs';\n\nimport { createSingleInjectionToken } from '@daffodil/core';\n\nimport { DaffAuthUnauthenticatedHook } from './hook.type';\nimport { DAFF_AUTH_UNAUTHENTICATED_HOOKS } from './hooks.token';\n\nexport const {\n /**\n * An internal token to hold the unauthenticated hook.\n * Combines the multi provided hooks into a single function.\n *\n * @docs-private\n */\n token: DAFF_AUTH_UNAUTHENTICATED_HOOK,\n /**\n * Provider function for {@link DAFF_AUTH_UNAUTHENTICATED_HOOK}.\n */\n provider: provideDaffAuthUnauthenticatedHook,\n} = createSingleInjectionToken<DaffAuthUnauthenticatedHook>(\n 'DAFF_AUTH_UNAUTHENTICATED_HOOK',\n {\n factory: () => {\n const hooks = inject(DAFF_AUTH_UNAUTHENTICATED_HOOKS);\n return (action) => combineLatest(hooks.map((hook) => hook(action)));\n },\n },\n);\n","import {\n Injectable,\n Inject,\n NgZone,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n EMPTY,\n Observable,\n} from 'rxjs';\nimport {\n switchMap,\n catchError,\n map,\n filter,\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 DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\nimport {\n DAFF_DRIVER_HTTP_CLIENT_CACHE_SERVICE,\n DaffDriverHttpClientCacheServiceInterface,\n} from '@daffodil/driver';\n\nimport {\n DaffAuthActionTypes,\n DaffAuthCheckSuccess,\n DaffAuthCheckFailure,\n DaffAuthCheck,\n DaffAuthStorageFailure,\n DaffAuthServerSide,\n DaffAuthLoginActionTypes,\n DaffAuthActions,\n DaffAuthLoginActions,\n DaffAuthResetToUnauthenticated,\n} from '../actions/public_api';\nimport {\n DaffAuthStateConfig,\n DAFF_AUTH_STATE_CONFIG,\n} from '../config/public_api';\nimport {\n DAFF_AUTH_ERROR_MATCHER,\n DaffAuthUnauthenticatedHook,\n} from '../injection-tokens/public_api';\nimport { DAFF_AUTH_UNAUTHENTICATED_HOOK } from '../injection-tokens/unauthenticated/hook.token';\n\n@Injectable()\nexport class DaffAuthEffects {\n constructor(\n private actions$: Actions<DaffAuthActions | DaffAuthLoginActions>,\n private tokenCheck: DaffAuthDriverTokenCheck,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n @Inject(DAFF_AUTH_STATE_CONFIG) private config: DaffAuthStateConfig,\n @Inject(DAFF_DRIVER_HTTP_CLIENT_CACHE_SERVICE) private clientCache: DaffDriverHttpClientCacheServiceInterface,\n @Inject(DAFF_AUTH_UNAUTHENTICATED_HOOK) private unauthenticatedHook: DaffAuthUnauthenticatedHook,\n private zone: NgZone,\n ) {}\n\n check$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthActionTypes.AuthCheckAction),\n switchMap((action) =>\n this.tokenCheck.check().pipe(\n map(() => new DaffAuthCheckSuccess()),\n catchError((error: DaffError) => of(new DaffAuthCheckFailure(this.errorMatcher(error)))),\n ),\n ),\n ));\n\n // this needs to be defined after `check$` or else the driver call won't be run\n authCheckInterval$ = createEffect(() =>\n new Observable<DaffAuthCheck>((subscriber) => {\n const intervalId = this.zone.runOutsideAngular(() =>\n setInterval(() => {\n subscriber.next(new DaffAuthCheck());\n }, this.config.checkInterval),\n );\n\n subscriber.next(new DaffAuthCheck());\n\n return () => {\n clearInterval(intervalId);\n };\n }).pipe(\n filter(() => !!this.storage.getAuthToken()),\n catchError((error: Error) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(new DaffAuthServerSide(this.errorMatcher(error)));\n\n case error instanceof DaffStorageServiceError:\n return of(new DaffAuthStorageFailure(this.errorMatcher(error)));\n\n default:\n return EMPTY;\n }\n }),\n ),\n );\n\n resetToUnauthenticated$ = createEffect(() => this.actions$.pipe(\n ofType(\n DaffAuthActionTypes.AuthCheckFailureAction,\n DaffAuthActionTypes.AuthGuardLogoutAction,\n DaffAuthLoginActionTypes.LogoutSuccessAction,\n ),\n filter((action) => {\n // if the auth check failure is for any reason other than auth failure,\n // such as a network failure, don't reset\n if (\n action.type === DaffAuthActionTypes.AuthCheckFailureAction\n && !DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES[action.errorMessage.code]\n ) {\n return false;\n }\n\n return true;\n }),\n map((action) => new DaffAuthResetToUnauthenticated(action.type)),\n ));\n\n clearClientCache$ = createEffect(() => this.actions$.pipe(\n ofType(\n DaffAuthActionTypes.ResetToUnauthenticatedAction,\n ),\n switchMap((action) => this.unauthenticatedHook(action.reason)),\n tap(() => {\n this.clientCache.reset();\n }),\n switchMap(() => EMPTY),\n ), { dispatch: false });\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport { of } from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n DaffAuthStorageService,\n} from '@daffodil/auth';\nimport {\n DaffLoginDriver,\n DaffLoginServiceInterface,\n} from '@daffodil/auth/driver';\nimport {\n DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthLoginActionTypes,\n DaffAuthLoginSuccess,\n DaffAuthLoginFailure,\n DaffAuthLogoutSuccess,\n DaffAuthLogoutFailure,\n DaffAuthLogout,\n DaffAuthServerSide,\n DaffAuthLoginActions,\n DaffAuthStorageFailure,\n} from '../actions/public_api';\nimport { DAFF_AUTH_ERROR_MATCHER } from '../injection-tokens/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<DaffAuthLoginActions<T, U>>,\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$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LoginAction),\n switchMap((action) =>\n this.loginDriver.login(action.loginInfo)\n .pipe(\n map((resp) => new DaffAuthLoginSuccess<U>(resp)),\n tap((success) => this.storage.setAuthToken(success.auth.token)),\n catchError((error: DaffError) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(new DaffAuthServerSide(this.errorMatcher(error)));\n case error instanceof DaffStorageServiceError:\n default:\n return of(new DaffAuthLoginFailure(this.errorMatcher(error)));\n }\n }),\n ),\n ),\n ));\n\n logout$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LogoutAction),\n switchMap((action: DaffAuthLogout) =>\n this.loginDriver.logout().pipe(\n map(() => new DaffAuthLogoutSuccess()),\n catchError((error: DaffError) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(new DaffAuthServerSide(this.errorMatcher(error)));\n case error instanceof DaffStorageServiceError:\n return of(new DaffAuthStorageFailure(this.errorMatcher(error)));\n default:\n return of(new DaffAuthLogoutFailure(this.errorMatcher(error)));\n }\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 DaffAccountRegistration,\n DaffAuthStorageService,\n} from '@daffodil/auth';\nimport {\n DaffRegisterDriver,\n DaffRegisterServiceInterface,\n} from '@daffodil/auth/driver';\nimport {\n DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthRegisterActionTypes,\n DaffAuthRegisterSuccess,\n DaffAuthRegisterFailure,\n DaffAuthServerSide,\n DaffAuthStorageFailure,\n DaffAuthRegisterActions,\n} from '../actions/public_api';\nimport { DAFF_AUTH_ERROR_MATCHER } from '../injection-tokens/public_api';\n\n@Injectable()\nexport class DaffAuthRegisterEffects<\n T extends DaffAccountRegistration = DaffAccountRegistration,\n> {\n constructor(\n private actions$: Actions<DaffAuthRegisterActions<T>>,\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) =>\n iif(\n () => action.autoLogin,\n defer(() => this.registerDriver.register(action.registration).pipe(\n tap(token => this.storage.setAuthToken(token)),\n map((token) => new DaffAuthRegisterSuccess(token)),\n )),\n defer(() => this.registerDriver.registerOnly(action.registration).pipe(\n map(() => new DaffAuthRegisterSuccess()),\n )),\n ).pipe(\n catchError((error: DaffError) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(\n new DaffAuthServerSide(this.errorMatcher(error)),\n new DaffAuthRegisterFailure(this.errorMatcher(error)),\n );\n\n case error instanceof DaffStorageServiceError:\n return of(\n new DaffAuthStorageFailure(this.errorMatcher(error)),\n new DaffAuthRegisterFailure(this.errorMatcher(error)),\n );\n\n default:\n return of(new DaffAuthRegisterFailure(this.errorMatcher(error)));\n }\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 DaffAuthResetPasswordInfo,\n DaffAuthStorageService,\n} from '@daffodil/auth';\nimport {\n DaffResetPasswordDriver,\n DaffResetPasswordServiceInterface,\n} from '@daffodil/auth/driver';\nimport {\n DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} 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 DaffAuthServerSide,\n DaffAuthStorageFailure,\n} from '../actions/public_api';\nimport { DAFF_AUTH_ERROR_MATCHER } from '../injection-tokens/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 map((token) => new DaffResetPasswordSuccess(token)),\n )),\n defer(() => this.driver.resetPasswordOnly(action.info).pipe(\n map(() => new DaffResetPasswordSuccess()),\n )),\n ).pipe(\n catchError((error: DaffError) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(\n new DaffAuthServerSide(this.errorMatcher(error)),\n new DaffResetPasswordFailure(this.errorMatcher(error)),\n );\n\n case error instanceof DaffStorageServiceError:\n return of(\n new DaffAuthStorageFailure(this.errorMatcher(error)),\n new DaffResetPasswordFailure(this.errorMatcher(error)),\n );\n\n default:\n return of(new DaffResetPasswordFailure(this.errorMatcher(error)));\n }\n }),\n ),\n ),\n ));\n}\n","import { inject } from '@angular/core';\nimport {\n ActionReducer,\n combineReducers,\n} from '@ngrx/store';\n\nimport { createSingleInjectionToken } from '@daffodil/core';\nimport { daffComposeReducers } from '@daffodil/core/state';\n\nimport { DAFF_AUTH_EXTRA_REDUCERS } from './extra.token';\nimport { DaffAuthFeatureState } from '../auth-feature-state.interface';\nimport { daffAuthReducers } from '../auth-reducers';\n\nexport const {\n /**\n * An internal token to hold the Daffodil auth reducers.\n * Includes the extra and standard reducers.\n *\n * @docs-private\n */\n token: DAFF_AUTH_REDUCERS,\n /**\n * Provider function for {@link DAFF_AUTH_REDUCERS}.\n */\n provider: provideDaffAuthReducers,\n} = createSingleInjectionToken<ActionReducer<DaffAuthFeatureState>>(\n 'DAFF_AUTH_REDUCERS',\n {\n factory: () => daffComposeReducers([\n combineReducers(daffAuthReducers),\n ...inject(DAFF_AUTH_EXTRA_REDUCERS),\n ]),\n },\n);\n","import {\n ModuleWithProviders,\n NgModule,\n inject,\n} from '@angular/core';\nimport { EffectsModule } from '@ngrx/effects';\nimport { StoreModule } from '@ngrx/store';\nimport { of } from 'rxjs';\n\nimport { DaffAuthStorageService } from '@daffodil/auth';\n\nimport {\n DaffAuthStateConfig,\n daffAuthStateDefaultConfig,\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_UNAUTHENTICATED_HOOKS,\n DaffAuthUnauthenticatedHook,\n} from './injection-tokens/public_api';\nimport { DAFF_AUTH_STORE_FEATURE_KEY } from './reducers/public_api';\nimport { DAFF_AUTH_REDUCERS } from './reducers/token/reducers.token';\n\n\n@NgModule({\n imports: [\n StoreModule.forFeature(DAFF_AUTH_STORE_FEATURE_KEY, DAFF_AUTH_REDUCERS),\n EffectsModule.forFeature([\n DaffAuthEffects,\n DaffAuthLoginEffects,\n DaffAuthRegisterEffects,\n DaffAuthResetPasswordEffects,\n ]),\n ],\n providers: [\n {\n provide: DAFF_AUTH_UNAUTHENTICATED_HOOKS,\n useFactory: () => {\n const storage = inject(DaffAuthStorageService);\n const hook: DaffAuthUnauthenticatedHook = () => {\n try {\n return of(storage.removeAuthToken());\n } catch {\n return of(null);\n }\n };\n\n return hook;\n },\n multi: true,\n },\n ],\n})\nexport class DaffAuthStateModule {\n static withConfig(config: Partial<DaffAuthStateConfig> = {}): ModuleWithProviders<DaffAuthStateModule> {\n return {\n ngModule: DaffAuthStateModule,\n providers: [\n provideDaffAuthStateConfig({\n ...daffAuthStateDefaultConfig,\n ...config,\n }),\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3","i1","i2"],"mappings":";;;;;;;;;;;;;;;;IAIY;AAAZ,CAAA,UAAY,mBAAmB,EAAA;AAC7B,IAAA,mBAAA,CAAA,8BAAA,CAAA,GAAA,kDAAiF;AACjF,IAAA,mBAAA,CAAA,0BAAA,CAAA,GAAA,8CAAyE;AACzE,IAAA,mBAAA,CAAA,uBAAA,CAAA,GAAA,2CAAmE;AACnE,IAAA,mBAAA,CAAA,sBAAA,CAAA,GAAA,0CAAiE;AACjE,IAAA,mBAAA,CAAA,iBAAA,CAAA,GAAA,oCAAsD;AACtD,IAAA,mBAAA,CAAA,wBAAA,CAAA,GAAA,4CAAqE;AACrE,IAAA,mBAAA,CAAA,wBAAA,CAAA,GAAA,4CAAqE;AACvE,CAAC,EARW,mBAAmB,KAAnB,mBAAmB,GAAA,EAAA,CAAA,CAAA;AAU/B;;;AAGG;MACU,8BAA8B,CAAA;AAGzC,IAAA,WAAA,CACS,MAAsB,EAAA;QAAtB,IAAA,CAAA,MAAM,GAAN,MAAM;AAHN,QAAA,IAAA,CAAA,IAAI,GAAG,mBAAmB,CAAC,4BAA4B;IAI7D;AACJ;AAED;;AAEG;MACU,sBAAsB,CAAA;AAGjC,IAAA,WAAA,CAAmB,YAA4B,EAAA;QAA5B,IAAA,CAAA,YAAY,GAAZ,YAAY;AAFtB,QAAA,IAAA,CAAA,IAAI,GAAG,mBAAmB,CAAC,wBAAwB;IAEV;AACnD;AAED;;AAEG;MACU,mBAAmB,CAAA;AAG9B,IAAA,WAAA,CAAmB,YAA4B,EAAA;QAA5B,IAAA,CAAA,YAAY,GAAZ,YAAY;AAFtB,QAAA,IAAA,CAAA,IAAI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