@daffodil/auth 0.48.0 → 0.48.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/state/actions/auth.actions.mjs +12 -1
- package/esm2020/state/effects/auth.effects.mjs +33 -12
- package/esm2020/state/effects/login.effects.mjs +24 -6
- package/esm2020/state/effects/register.effects.mjs +13 -3
- package/esm2020/state/effects/reset-password.effects.mjs +13 -3
- package/esm2020/state/reducers/auth/auth.reducer.mjs +3 -1
- package/fesm2015/daffodil-auth-state.mjs +85 -16
- package/fesm2015/daffodil-auth-state.mjs.map +1 -1
- package/fesm2020/daffodil-auth-state.mjs +85 -16
- package/fesm2020/daffodil-auth-state.mjs.map +1 -1
- package/package.json +3 -3
- package/state/actions/auth.actions.d.ts +7 -1
- package/state/effects/auth.effects.d.ts +5 -4
- package/state/effects/login.effects.d.ts +5 -4
- package/state/effects/reset-password.effects.d.ts +2 -2
|
@@ -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/auth-store-feature-key.ts","../../../libs/auth/state/src/reducers/auth-reducers.ts","../../../libs/auth/state/src/selectors/auth-feature.selector.ts","../../../libs/auth/state/src/selectors/auth/auth.selector.ts","../../../libs/auth/state/src/selectors/login/login.selector.ts","../../../libs/auth/state/src/selectors/register/register.selector.ts","../../../libs/auth/state/src/selectors/reset-password/selector.ts","../../../libs/auth/state/src/selectors/auth-all.selector.ts","../../../libs/auth/state/src/facades/auth/facade.ts","../../../libs/auth/state/src/facades/login/facade.ts","../../../libs/auth/state/src/facades/register/facade.ts","../../../libs/auth/state/src/facades/reset-password/facade.ts","../../../libs/auth/state/src/config/default.ts","../../../libs/auth/state/src/config/token.ts","../../../libs/auth/state/src/effects/auth.effects.ts","../../../libs/auth/state/src/effects/login.effects.ts","../../../libs/auth/state/src/effects/register.effects.ts","../../../libs/auth/state/src/effects/reset-password.effects.ts","../../../libs/auth/state/src/auth-state.module.ts","../../../libs/auth/state/src/daffodil-auth-state.ts"],"sourcesContent":["import { Action } from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthActionTypes {\n AuthGuardCheckAction = '[@daffodil/auth] Auth Guard Check Action',\n AuthGuardCheckCompletionAction = '[@daffodil/auth] Auth Guard Check Completion Action',\n AuthStorageFailureAction = '[@daffodil/auth] Auth Storage Failure Action',\n AuthCheckAction = '[@daffodil/auth] Auth Check Action',\n AuthCheckSuccessAction = '[@daffodil/auth] Auth Check Success Action',\n AuthCheckFailureAction = '[@daffodil/auth] Auth Check Failure Action',\n AuthCompleteAction = '[@daffodil/auth] Auth Complete Action',\n}\n\n/**\n * An action triggered by guards to initialize an auth check request.\n */\nexport class DaffAuthGuardCheck implements Action {\n readonly type = DaffAuthActionTypes.AuthGuardCheckAction;\n}\n\n/**\n * An action triggered on the completion of a guard token check.\n */\nexport class DaffAuthGuardCheckCompletion implements Action {\n readonly type = DaffAuthActionTypes.AuthGuardCheckCompletionAction;\n\n constructor(public result: boolean) {}\n}\n\n/*\n * An action triggered upon a failed auth storage operation.\n */\nexport class DaffAuthStorageFailure implements Action {\n readonly type = DaffAuthActionTypes.AuthStorageFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n\n/**\n * An action triggered to initialize an auth check request.\n */\nexport class DaffAuthCheck implements Action {\n readonly type = DaffAuthActionTypes.AuthCheckAction;\n}\n\n/**\n * An action triggered upon a successful auth check.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthCheckSuccess implements Action {\n readonly type = DaffAuthActionTypes.AuthCheckSuccessAction;\n}\n\n/**\n * An action triggered upon a failed auth check request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthCheckFailure implements Action {\n readonly type = DaffAuthActionTypes.AuthCheckFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered when the user authentication flow is completed.\n * The auth token is in storage at this point.\n */\nexport class DaffAuthComplete implements Action {\n readonly type = DaffAuthActionTypes.AuthCompleteAction;\n}\n\nexport type DaffAuthActions =\n | DaffAuthGuardCheckCompletion\n | DaffAuthGuardCheck\n | DaffAuthStorageFailure\n | DaffAuthCheck\n | DaffAuthCheckSuccess\n | DaffAuthCheckFailure\n | DaffAuthComplete;\n","import { Action } from '@ngrx/store';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthLoginActionTypes {\n LoginAction = '[@daffodil/auth] Login Action',\n LoginSuccessAction = '[@daffodil/auth] Login Success Action',\n LoginFailureAction = '[@daffodil/auth] Login Failure Action',\n LogoutAction = '[@daffodil/auth] Logout Action',\n LogoutSuccessAction = '[@daffodil/auth] Logout Success Action',\n LogoutFailureAction = '[@daffodil/auth] Logout Failure Action',\n}\n\n/**\n * An action triggered to initialize a auth login request.\n */\nexport class DaffAuthLogin<T extends DaffLoginInfo = DaffLoginInfo> implements Action {\n readonly type = DaffAuthLoginActionTypes.LoginAction;\n\n constructor(public loginInfo: T) {}\n}\n\n/**\n * An action triggered upon a successful auth login.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthLoginSuccess<T extends DaffAuthToken = DaffAuthToken> implements Action {\n readonly type = DaffAuthLoginActionTypes.LoginSuccessAction;\n\n constructor(public auth: T) {}\n}\n\n/**\n * An action triggered upon a failed auth login request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthLoginFailure implements Action {\n readonly type = DaffAuthLoginActionTypes.LoginFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered to initialize a logout request.\n */\nexport class DaffAuthLogout implements Action {\n readonly type = DaffAuthLoginActionTypes.LogoutAction;\n}\n\n/**\n * An action triggered upon a successful logout.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthLogoutSuccess implements Action {\n readonly type = DaffAuthLoginActionTypes.LogoutSuccessAction;\n}\n\n/**\n * An action triggered upon a failed logout request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthLogoutFailure implements Action {\n readonly type = DaffAuthLoginActionTypes.LogoutFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\nexport type DaffAuthLoginActions<\n T extends DaffLoginInfo = DaffLoginInfo,\n U extends DaffAuthToken = DaffAuthToken,\n> =\n | DaffAuthLogin<T>\n | DaffAuthLoginSuccess<U>\n | DaffAuthLoginFailure\n | DaffAuthLogout\n | DaffAuthLogoutSuccess\n | DaffAuthLogoutFailure;\n","import { Action } from '@ngrx/store';\n\nimport { DaffAccountRegistration } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthRegisterActionTypes {\n RegisterAction = '[@daffodil/auth] Register Action',\n RegisterSuccessAction = '[@daffodil/auth] Register Success Action',\n RegisterFailureAction = '[@daffodil/auth] Register Failure Action',\n}\n\n/**\n * An action triggered to initialize a auth register request.\n *\n * @param registration\n */\nexport class DaffAuthRegister<T extends DaffAccountRegistration = DaffAccountRegistration> implements Action {\n readonly type = DaffAuthRegisterActionTypes.RegisterAction;\n\n constructor(public registration: T, public autoLogin = true) {}\n}\n\n/**\n * An action triggered upon a successful auth register request.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthRegisterSuccess implements Action {\n readonly type = DaffAuthRegisterActionTypes.RegisterSuccessAction;\n\n constructor(public token?: string) {}\n}\n\n/**\n * An action triggered upon a failed auth request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthRegisterFailure implements Action {\n readonly type = DaffAuthRegisterActionTypes.RegisterFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\nexport type DaffAuthRegisterActions<\n T extends DaffAccountRegistration = DaffAccountRegistration,\n> =\n | DaffAuthRegister<T>\n | DaffAuthRegisterSuccess\n | DaffAuthRegisterFailure;\n","import { Action } from '@ngrx/store';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthResetPasswordActionTypes {\n SendResetEmailAction = '[@daffodil/auth] Send Reset Email Action',\n SendResetEmailSuccessAction = '[@daffodil/auth] Send Reset Email Success Action',\n SendResetEmailFailureAction = '[@daffodil/auth] Send Reset Email Failure Action',\n ResetPasswordAction = '[@daffodil/auth] Reset Password Action',\n ResetPasswordSuccessAction = '[@daffodil/auth] Reset Password Success Action',\n ResetPasswordFailureAction = '[@daffodil/auth] Reset Password Failure Action',\n ResetPasswordLandingAction = '[@daffodil/auth] Reset Password Landing Action',\n}\n\n/**\n * An action triggered to send the specified customer an email to reset their password.\n */\nexport class DaffSendResetEmail implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailAction;\n\n constructor(public email: string) {}\n}\n\n/**\n * An action triggered upon a successfully sent reset password email.\n */\nexport class DaffSendResetEmailSuccess implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailSuccessAction;\n}\n\n/**\n * An action triggered upon a failure to send the reset password email.\n *\n * @param errorMessage - an error message\n */\nexport class DaffSendResetEmailFailure implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered to initialize a logout request.\n */\nexport class DaffResetPassword<T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo> implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordAction;\n\n constructor(public info: T, public autoLogin = true) {}\n}\n\n/**\n * An action triggered upon a successful logout.\n */\nexport class DaffResetPasswordSuccess implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction;\n}\n\n/**\n * An action triggered upon a failed logout request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffResetPasswordFailure implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered upon the user navigating to the reset password page from the link in their email.\n *\n * @param token - The token with which the password can be reset\n */\nexport class DaffResetPasswordLanding implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordLandingAction;\n\n constructor(public token: DaffAuthResetPasswordInfo['token']) {}\n}\n\nexport type DaffAuthResetPasswordActions<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n> =\n | DaffSendResetEmail\n | DaffSendResetEmailSuccess\n | DaffSendResetEmailFailure\n | DaffResetPassword<T>\n | DaffResetPasswordSuccess\n | DaffResetPasswordFailure\n | DaffResetPasswordLanding;\n","import { DaffAuthReducerState } from './auth-reducer-state.interface';\n\nexport const daffAuthInitialState: DaffAuthReducerState = {\n loading: false,\n errors: [],\n};\n","import {\n DaffAuthActionTypes,\n DaffAuthActions,\n} from '../../actions/public_api';\nimport { daffAuthInitialState } from './auth-initial-state';\nimport { DaffAuthReducerState } from './auth-reducer-state.interface';\n\nexport function daffAuthReducer(\n state = daffAuthInitialState,\n action: DaffAuthActions,\n): DaffAuthReducerState {\n switch (action.type) {\n case DaffAuthActionTypes.AuthCheckAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthActionTypes.AuthCheckSuccessAction:\n return {\n ...state,\n loading: false,\n errors: [],\n };\n\n case DaffAuthActionTypes.AuthCheckFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n default:\n return state;\n }\n}\n","import { DaffAuthLoginReducerState } from './login-reducer-state.interface';\n\nexport const daffAuthLoginInitialState: DaffAuthLoginReducerState = {\n loading: false,\n errors: [],\n};\n","import {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\n\nimport {\n DaffAuthLoginActionTypes,\n DaffAuthLoginActions,\n} from '../../actions/public_api';\nimport { daffAuthLoginInitialState } from './login-initial-state';\nimport { DaffAuthLoginReducerState } from './login-reducer-state.interface';\n\nexport function daffAuthLoginReducer<\n T extends DaffLoginInfo,\n U extends DaffAuthToken,\n>(\n state = daffAuthLoginInitialState,\n action: DaffAuthLoginActions<T, U>,\n): DaffAuthLoginReducerState {\n switch (action.type) {\n case DaffAuthLoginActionTypes.LoginAction:\n case DaffAuthLoginActionTypes.LogoutAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthLoginActionTypes.LoginSuccessAction:\n case DaffAuthLoginActionTypes.LogoutSuccessAction:\n return {\n ...state,\n loading: false,\n errors: [],\n };\n\n case DaffAuthLoginActionTypes.LoginFailureAction:\n case DaffAuthLoginActionTypes.LogoutFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n default:\n return state;\n }\n}\n","import { DaffAuthRegisterReducerState } from './register-reducer-state.interface';\n\nexport const daffAuthRegisterInitialState: DaffAuthRegisterReducerState = {\n loading: false,\n errors: [],\n};\n","import { DaffAccountRegistration } from '@daffodil/auth';\n\nimport {\n DaffAuthRegisterActionTypes,\n DaffAuthRegisterActions,\n} from '../../actions/public_api';\nimport { daffAuthRegisterInitialState } from './register-initial-state';\nimport { DaffAuthRegisterReducerState } from './register-reducer-state.interface';\n\nexport function daffAuthRegisterReducer<\n T extends DaffAccountRegistration,\n>(\n state = daffAuthRegisterInitialState,\n action: DaffAuthRegisterActions<T>,\n): DaffAuthRegisterReducerState {\n switch (action.type) {\n case DaffAuthRegisterActionTypes.RegisterAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthRegisterActionTypes.RegisterSuccessAction:\n return {\n ...state,\n loading: false,\n errors: [],\n };\n\n case DaffAuthRegisterActionTypes.RegisterFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n default:\n return state;\n }\n}\n","import { DaffAuthResetPasswordReducerState } from './state.interface';\n\nexport const daffAuthResetPasswordInitialState: DaffAuthResetPasswordReducerState = {\n loading: false,\n errors: [],\n token: null,\n};\n","import { DaffAuthResetPasswordInfo } from '@daffodil/auth';\n\nimport {\n DaffAuthResetPasswordActionTypes,\n DaffAuthResetPasswordActions,\n} from '../../actions/public_api';\nimport { daffAuthResetPasswordInitialState } from './initial-state';\nimport { DaffAuthResetPasswordReducerState } from './state.interface';\n\nexport function daffAuthResetPasswordReducer<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n>(\n state = daffAuthResetPasswordInitialState,\n action: DaffAuthResetPasswordActions<T>,\n): DaffAuthResetPasswordReducerState {\n switch (action.type) {\n case DaffAuthResetPasswordActionTypes.ResetPasswordAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailSuccessAction:\n return {\n ...state,\n loading: false,\n errors: [],\n };\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordFailureAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordLandingAction:\n return {\n ...state,\n token: action.token,\n };\n\n default:\n return state;\n }\n}\n","export const DAFF_AUTH_STORE_FEATURE_KEY = 'daffAuth';\n","import { ActionReducerMap } from '@ngrx/store';\n\nimport { DaffAuthFeatureState } from './auth-feature-state.interface';\nimport { daffAuthReducer } from './auth/public_api';\nimport { daffAuthLoginReducer } from './login/public_api';\nimport { daffAuthRegisterReducer } from './register/public_api';\nimport { daffAuthResetPasswordReducer } from './reset-password/public_api';\n\nexport const daffAuthReducers: ActionReducerMap<DaffAuthFeatureState> = {\n auth: daffAuthReducer,\n login: daffAuthLoginReducer,\n register: daffAuthRegisterReducer,\n resetPassword: daffAuthResetPasswordReducer,\n};\n","import {\n createFeatureSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport {\n DaffAuthFeatureState,\n DAFF_AUTH_STORE_FEATURE_KEY,\n} from '../reducers/public_api';\n\n/**\n * Feature State Selector\n */\nexport const getDaffAuthFeatureStateSelector = (() => {\n let cache;\n return (): MemoizedSelector<Record<string, any>, DaffAuthFeatureState> =>\n cache = cache || createFeatureSelector<DaffAuthFeatureState>(DAFF_AUTH_STORE_FEATURE_KEY);\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffAuthToken } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface AuthSelectors {\n selectAuthState: MemoizedSelector<Record<string, any>, DaffAuthReducerState>;\n selectAuthLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n}\n\nconst createAuthSelectors = <T extends DaffAuthToken = DaffAuthToken>() => {\n const selectAuthState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.auth,\n );\n\n const selectAuthLoading = createSelector(\n selectAuthState,\n state => state.loading,\n );\n\n const selectAuthErrors = createSelector(\n selectAuthState,\n state => state.errors,\n );\n\n return {\n selectAuthState,\n selectAuthLoading,\n selectAuthErrors,\n };\n};\n\nexport const getAuthSelectors = (() => {\n let cache;\n return <T extends DaffAuthToken = DaffAuthToken>(): AuthSelectors =>\n cache = cache || createAuthSelectors<T>();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthLoginReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthLoginSelectors {\n selectAuthLoginState: MemoizedSelector<Record<string, any>, DaffAuthLoginReducerState>;\n selectAuthLoginLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthLoginErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n}\n\nconst createLoginSelectors = () => {\n const selectAuthLoginState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.login,\n );\n\n const selectAuthLoginLoading = createSelector(\n selectAuthLoginState,\n state => state.loading,\n );\n\n const selectAuthLoginErrors = createSelector(\n selectAuthLoginState,\n state => state.errors,\n );\n\n return {\n selectAuthLoginState,\n selectAuthLoginLoading,\n selectAuthLoginErrors,\n };\n};\n\nexport const getDaffAuthLoginSelectors = (() => {\n let cache;\n return (): DaffAuthLoginSelectors =>\n cache = cache || createLoginSelectors();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffAuthToken } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthRegisterReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthRegisterSelectors {\n selectAuthRegisterState: MemoizedSelector<Record<string, any>, DaffAuthRegisterReducerState>;\n selectAuthRegisterLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthRegisterErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n}\n\nconst createRegisterSelectors = <T extends DaffAuthToken = DaffAuthToken>() => {\n const selectAuthRegisterState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.register,\n );\n\n const selectAuthRegisterLoading = createSelector(\n selectAuthRegisterState,\n state => state.loading,\n );\n\n const selectAuthRegisterErrors = createSelector(\n selectAuthRegisterState,\n state => state.errors,\n );\n\n return {\n selectAuthRegisterState,\n selectAuthRegisterLoading,\n selectAuthRegisterErrors,\n };\n};\n\nexport const getDaffAuthRegisterSelectors = (() => {\n let cache;\n return <T extends DaffAuthToken = DaffAuthToken>(): DaffAuthRegisterSelectors =>\n cache = cache || createRegisterSelectors<T>();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthResetPasswordReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthResetPasswordSelectors {\n selectAuthResetPasswordState: MemoizedSelector<Record<string, any>, DaffAuthResetPasswordReducerState>;\n selectAuthResetPasswordLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthResetPasswordErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n selectAuthResetPasswordToken: MemoizedSelector<Record<string, any>, DaffAuthResetPasswordInfo['token']>;\n}\n\nconst createResetPasswordSelectors = (): DaffAuthResetPasswordSelectors => {\n const selectAuthResetPasswordState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.resetPassword,\n );\n\n const selectAuthResetPasswordLoading = createSelector(\n selectAuthResetPasswordState,\n state => state.loading,\n );\n\n const selectAuthResetPasswordErrors = createSelector(\n selectAuthResetPasswordState,\n state => state.errors,\n );\n\n const selectAuthResetPasswordToken = createSelector(\n selectAuthResetPasswordState,\n state => state.token,\n );\n\n return {\n selectAuthResetPasswordState,\n selectAuthResetPasswordLoading,\n selectAuthResetPasswordErrors,\n selectAuthResetPasswordToken,\n };\n};\n\nexport const getDaffAuthResetPasswordSelectors = (() => {\n let cache;\n return (): DaffAuthResetPasswordSelectors =>\n cache = cache || createResetPasswordSelectors();\n})();\n","import { MemoizedSelector } from '@ngrx/store';\n\nimport { DaffAuthFeatureState } from '../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from './auth-feature.selector';\nimport {\n getAuthSelectors,\n AuthSelectors,\n} from './auth/auth.selector';\nimport {\n getDaffAuthLoginSelectors,\n DaffAuthLoginSelectors,\n} from './login/login.selector';\nimport {\n getDaffAuthRegisterSelectors,\n DaffAuthRegisterSelectors,\n} from './register/register.selector';\nimport {\n DaffAuthResetPasswordSelectors,\n getDaffAuthResetPasswordSelectors,\n} from './reset-password/selector';\n\nexport interface DaffAuthSelectors extends\n DaffAuthRegisterSelectors,\n DaffAuthLoginSelectors,\n DaffAuthResetPasswordSelectors,\n AuthSelectors {\n selectAuthFeatureState: MemoizedSelector<Record<string, any>, DaffAuthFeatureState>;\n}\n\nexport const getDaffAuthSelectors = (() => {\n let cache;\n return (): DaffAuthSelectors =>\n cache = cache || {\n ...getAuthSelectors(),\n ...getDaffAuthLoginSelectors(),\n ...getDaffAuthRegisterSelectors(),\n ...getDaffAuthResetPasswordSelectors(),\n selectAuthFeatureState: getDaffAuthFeatureStateSelector(),\n };\n})();\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffAuthToken } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthFacade<T extends DaffAuthToken = DaffAuthToken> implements DaffAuthFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthLoading,\n selectAuthErrors,\n } = getDaffAuthSelectors();\n\n this.loading$ = this.store.pipe(select(selectAuthLoading));\n this.errors$ = this.store.pipe(select(selectAuthErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthLoginFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthLoginFacade implements DaffAuthLoginFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthLoginLoading,\n selectAuthLoginErrors,\n } = getDaffAuthSelectors();\n\n this.loading$ = this.store.pipe(select(selectAuthLoginLoading));\n this.errors$ = this.store.pipe(select(selectAuthLoginErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthRegisterFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthRegisterFacade implements DaffAuthRegisterFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthRegisterLoading,\n selectAuthRegisterErrors,\n } = getDaffAuthSelectors();\n\n this.loading$ = this.store.pipe(select(selectAuthRegisterLoading));\n this.errors$ = this.store.pipe(select(selectAuthRegisterErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthResetPasswordFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthResetPasswordFacade implements DaffAuthResetPasswordFacadeInterface {\n token$: Observable<DaffAuthResetPasswordInfo['token']>;\n\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthResetPasswordLoading,\n selectAuthResetPasswordErrors,\n selectAuthResetPasswordToken,\n } = getDaffAuthSelectors();\n\n this.token$ = this.store.pipe(select(selectAuthResetPasswordToken));\n\n this.loading$ = this.store.pipe(select(selectAuthResetPasswordLoading));\n this.errors$ = this.store.pipe(select(selectAuthResetPasswordErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { DaffAuthStateConfig } from './type';\n\nconst TWENTY_MINUTES = 1.2e6;\n\nexport const daffAuthStateDefaultConfig: DaffAuthStateConfig = {\n checkInterval: TWENTY_MINUTES,\n};\n","import {\n InjectionToken,\n ValueProvider,\n} from '@angular/core';\n\nimport { daffAuthStateDefaultConfig } from './default';\nimport { DaffAuthStateConfig } from './type';\n\nexport const DAFF_AUTH_STATE_CONFIG = new InjectionToken('DAFF_AUTH_STATE_CONFIG', { factory: () => daffAuthStateDefaultConfig });\n\nexport const provideDaffAuthStateConfig = (config: DaffAuthStateConfig): ValueProvider => ({\n provide: DAFF_AUTH_STATE_CONFIG,\n useValue: config,\n});\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n} from 'rxjs';\nimport {\n switchMap,\n catchError,\n map,\n repeat,\n filter,\n} from 'rxjs/operators';\n\nimport {\n DaffAuthStorageService,\n DAFF_AUTH_ERROR_MATCHER,\n} from '@daffodil/auth';\nimport {\n DaffAuthDriver,\n DaffAuthServiceInterface,\n} from '@daffodil/auth/driver';\nimport { DaffError } from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthActionTypes,\n DaffAuthCheckSuccess,\n DaffAuthCheckFailure,\n DaffAuthCheck,\n DaffAuthGuardCheckCompletion,\n DaffAuthGuardCheck,\n} from '../actions/public_api';\nimport {\n DaffAuthStateConfig,\n DAFF_AUTH_STATE_CONFIG,\n} from '../config/public_api';\n\n@Injectable()\nexport class DaffAuthEffects {\n constructor(\n private actions$: Actions,\n @Inject(DaffAuthDriver) private authDriver: DaffAuthServiceInterface,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n @Inject(DAFF_AUTH_STATE_CONFIG) private config: DaffAuthStateConfig,\n ) {}\n\n check$: Observable<DaffAuthCheckSuccess | DaffAuthCheckFailure> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthActionTypes.AuthCheckAction),\n switchMap((action: DaffAuthCheck) =>\n this.authDriver.check().pipe(\n map(() => new DaffAuthCheckSuccess()),\n catchError((error: DaffError) => {\n this.storage.removeAuthToken();\n return of(new DaffAuthCheckFailure(this.errorMatcher(error)));\n }),\n ),\n ),\n ));\n\n guardCheck$: Observable<DaffAuthGuardCheckCompletion> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthActionTypes.AuthGuardCheckAction),\n switchMap((action: DaffAuthGuardCheck) =>\n this.authDriver.check().pipe(\n map(() => new DaffAuthGuardCheckCompletion(true)),\n catchError((error: DaffError) => {\n this.storage.removeAuthToken();\n return of(new DaffAuthGuardCheckCompletion(false));\n }),\n ),\n ),\n ));\n\n // this needs to be defined after `check$` or else the driver call won't be run\n authCheckInterval$ = createEffect(() => of(new DaffAuthCheck()).pipe(\n repeat({ delay: this.config.checkInterval }),\n filter(() => !!this.storage.getAuthToken()),\n ));\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n EMPTY,\n} from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n DAFF_AUTH_ERROR_MATCHER,\n DaffAuthStorageService,\n} from '@daffodil/auth';\nimport {\n DaffLoginDriver,\n DaffLoginServiceInterface,\n} from '@daffodil/auth/driver';\nimport { DaffError } from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthLoginActionTypes,\n DaffAuthLogin,\n DaffAuthLoginSuccess,\n DaffAuthLoginFailure,\n DaffAuthLogoutSuccess,\n DaffAuthLogoutFailure,\n DaffAuthLogout,\n DaffAuthStorageFailure,\n DaffAuthComplete,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffAuthLoginEffects<\n T extends DaffLoginInfo = DaffLoginInfo,\n U extends DaffAuthToken = DaffAuthToken,\n> {\n constructor(\n private actions$: Actions,\n @Inject(DaffLoginDriver) private loginDriver: DaffLoginServiceInterface<T, U>,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n ) {}\n\n login$: Observable<DaffAuthLoginSuccess<U> | DaffAuthLoginFailure> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LoginAction),\n switchMap((action: DaffAuthLogin<T>) =>\n this.loginDriver.login(action.loginInfo).pipe(\n map((resp) =>\n new DaffAuthLoginSuccess<U>(resp),\n ),\n catchError((error: DaffError) =>\n of(new DaffAuthLoginFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n logout$: Observable<DaffAuthLogoutSuccess | DaffAuthLogoutFailure> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LogoutAction),\n switchMap((action: DaffAuthLogout) =>\n this.loginDriver.logout().pipe(\n map(() => new DaffAuthLogoutSuccess()),\n tap(() => {\n this.storage.removeAuthToken();\n }),\n catchError((error: DaffError) =>\n of(new DaffAuthLogoutFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n storeAuthToken$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LoginSuccessAction),\n tap((action: DaffAuthLoginSuccess<U>) => {\n this.storage.setAuthToken(action.auth.token);\n }),\n map(() => new DaffAuthComplete()),\n catchError((error: DaffError) => of(new DaffAuthStorageFailure(this.errorMatcher(error)))),\n ));\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n iif,\n defer,\n} from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffAccountRegistration,\n DaffAuthStorageService,\n DAFF_AUTH_ERROR_MATCHER,\n} from '@daffodil/auth';\nimport {\n DaffRegisterDriver,\n DaffRegisterServiceInterface,\n} from '@daffodil/auth/driver';\nimport { DaffError } from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthRegisterActionTypes,\n DaffAuthRegister,\n DaffAuthRegisterSuccess,\n DaffAuthRegisterFailure,\n DaffAuthComplete,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffAuthRegisterEffects<\n T extends DaffAccountRegistration = DaffAccountRegistration,\n> {\n constructor(\n private actions$: Actions,\n @Inject(DaffRegisterDriver) private registerDriver: DaffRegisterServiceInterface<T>,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n ) {}\n\n register$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthRegisterActionTypes.RegisterAction),\n switchMap((action: DaffAuthRegister<T>) =>\n iif(\n () => action.autoLogin,\n defer(() => this.registerDriver.register(action.registration).pipe(\n tap(token => this.storage.setAuthToken(token)),\n switchMap(() => of(new DaffAuthRegisterSuccess(), new DaffAuthComplete())),\n )),\n defer(() => this.registerDriver.registerOnly(action.registration).pipe(\n map(() => new DaffAuthRegisterSuccess()),\n )),\n ).pipe(\n catchError((error: DaffError) =>\n of(new DaffAuthRegisterFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n iif,\n defer,\n} from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DAFF_AUTH_ERROR_MATCHER,\n DaffAuthResetPasswordInfo,\n DaffAuthStorageService,\n} from '@daffodil/auth';\nimport {\n DaffResetPasswordDriver,\n DaffResetPasswordServiceInterface,\n} from '@daffodil/auth/driver';\nimport { DaffError } from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthResetPasswordActionTypes,\n DaffResetPassword,\n DaffResetPasswordSuccess,\n DaffResetPasswordFailure,\n DaffSendResetEmail,\n DaffSendResetEmailSuccess,\n DaffSendResetEmailFailure,\n DaffAuthComplete,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffAuthResetPasswordEffects<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n> {\n constructor(\n private actions$: Actions,\n @Inject(DaffResetPasswordDriver) private driver: DaffResetPasswordServiceInterface<T>,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n ) {}\n\n sendResetEmail$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthResetPasswordActionTypes.SendResetEmailAction),\n switchMap((action: DaffSendResetEmail) =>\n this.driver.sendResetEmail(action.email).pipe(\n map(() =>\n new DaffSendResetEmailSuccess(),\n ),\n catchError((error: DaffError) =>\n of(new DaffSendResetEmailFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n resetPassword$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthResetPasswordActionTypes.ResetPasswordAction),\n switchMap((action: DaffResetPassword<T>) =>\n iif(\n () => action.autoLogin,\n defer(() => this.driver.resetPassword(action.info).pipe(\n tap(token => this.storage.setAuthToken(token)),\n switchMap(() => of(new DaffResetPasswordSuccess(), new DaffAuthComplete())),\n )),\n defer(() => this.driver.resetPasswordOnly(action.info).pipe(\n map(() => new DaffResetPasswordSuccess()),\n )),\n ).pipe(\n catchError((error: DaffError) =>\n of(new DaffResetPasswordFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n}\n","import {\n ModuleWithProviders,\n NgModule,\n} from '@angular/core';\nimport { EffectsModule } from '@ngrx/effects';\nimport { StoreModule } from '@ngrx/store';\n\nimport {\n DaffAuthStateConfig,\n provideDaffAuthStateConfig,\n} from './config/public_api';\nimport { DaffAuthEffects } from './effects/auth.effects';\nimport { DaffAuthLoginEffects } from './effects/login.effects';\nimport { DaffAuthRegisterEffects } from './effects/register.effects';\nimport { DaffAuthResetPasswordEffects } from './effects/reset-password.effects';\nimport {\n DAFF_AUTH_STORE_FEATURE_KEY,\n daffAuthReducers,\n} from './reducers/public_api';\n\n@NgModule({\n imports: [\n StoreModule.forFeature(DAFF_AUTH_STORE_FEATURE_KEY, daffAuthReducers),\n EffectsModule.forFeature([\n DaffAuthEffects,\n DaffAuthLoginEffects,\n DaffAuthRegisterEffects,\n DaffAuthResetPasswordEffects,\n ]),\n ],\n})\nexport class DaffAuthStateModule {\n static withConfig(config: DaffAuthStateConfig): ModuleWithProviders<DaffAuthStateModule> {\n return {\n ngModule: DaffAuthStateModule,\n providers: [\n provideDaffAuthStateConfig(config),\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;AAIY,IAAA,oBAQX;AARD,CAAA,UAAY,mBAAmB,EAAA;AAC7B,IAAA,mBAAA,CAAA,sBAAA,CAAA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OAAA,EAAA,CAAA,EAAA,CAAA,kBAAA,EAAAC,IAAA,CAAA,oBAAA,CAAA,EAAA,CAAA,CAAA;AAAnB,mBAAA,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,EAVrB,OAAA,EAAA,CAAA;AACP,YAAA,WAAW,CAAC,UAAU,CAAC,2BAA2B,EAAE,gBAAgB,CAAC;YACrE,aAAa,CAAC,UAAU,CAAC;gBACvB,eAAe;gBACf,oBAAoB;gBACpB,uBAAuB;gBACvB,4BAA4B;aAC7B,CAAC;SACH,CAAA,EAAA,CAAA,CAAA;2FAEU,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAX/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;AACP,wBAAA,WAAW,CAAC,UAAU,CAAC,2BAA2B,EAAE,gBAAgB,CAAC;wBACrE,aAAa,CAAC,UAAU,CAAC;4BACvB,eAAe;4BACf,oBAAoB;4BACpB,uBAAuB;4BACvB,4BAA4B;yBAC7B,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC9BD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"daffodil-auth-state.mjs","sources":["../../../libs/auth/state/src/actions/auth.actions.ts","../../../libs/auth/state/src/actions/login.actions.ts","../../../libs/auth/state/src/actions/register.actions.ts","../../../libs/auth/state/src/actions/reset-password.actions.ts","../../../libs/auth/state/src/reducers/auth/auth-initial-state.ts","../../../libs/auth/state/src/reducers/auth/auth.reducer.ts","../../../libs/auth/state/src/reducers/login/login-initial-state.ts","../../../libs/auth/state/src/reducers/login/login.reducer.ts","../../../libs/auth/state/src/reducers/register/register-initial-state.ts","../../../libs/auth/state/src/reducers/register/register.reducer.ts","../../../libs/auth/state/src/reducers/reset-password/initial-state.ts","../../../libs/auth/state/src/reducers/reset-password/reducer.ts","../../../libs/auth/state/src/reducers/auth-store-feature-key.ts","../../../libs/auth/state/src/reducers/auth-reducers.ts","../../../libs/auth/state/src/selectors/auth-feature.selector.ts","../../../libs/auth/state/src/selectors/auth/auth.selector.ts","../../../libs/auth/state/src/selectors/login/login.selector.ts","../../../libs/auth/state/src/selectors/register/register.selector.ts","../../../libs/auth/state/src/selectors/reset-password/selector.ts","../../../libs/auth/state/src/selectors/auth-all.selector.ts","../../../libs/auth/state/src/facades/auth/facade.ts","../../../libs/auth/state/src/facades/login/facade.ts","../../../libs/auth/state/src/facades/register/facade.ts","../../../libs/auth/state/src/facades/reset-password/facade.ts","../../../libs/auth/state/src/config/default.ts","../../../libs/auth/state/src/config/token.ts","../../../libs/auth/state/src/effects/auth.effects.ts","../../../libs/auth/state/src/effects/login.effects.ts","../../../libs/auth/state/src/effects/register.effects.ts","../../../libs/auth/state/src/effects/reset-password.effects.ts","../../../libs/auth/state/src/auth-state.module.ts","../../../libs/auth/state/src/daffodil-auth-state.ts"],"sourcesContent":["import { Action } from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthActionTypes {\n AuthGuardCheckAction = '[@daffodil/auth] Auth Guard Check Action',\n AuthGuardCheckCompletionAction = '[@daffodil/auth] Auth Guard Check Completion Action',\n AuthStorageFailureAction = '[@daffodil/auth] Auth Storage Failure Action',\n 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 AuthCompleteAction = '[@daffodil/auth] Auth Complete Action',\n}\n\n/**\n * An action triggered by guards to initialize an auth check request.\n */\nexport class DaffAuthGuardCheck implements Action {\n readonly type = DaffAuthActionTypes.AuthGuardCheckAction;\n}\n\n/**\n * An action triggered on the completion of a guard token check.\n */\nexport class DaffAuthGuardCheckCompletion implements Action {\n readonly type = DaffAuthActionTypes.AuthGuardCheckCompletionAction;\n\n constructor(public result: boolean) {}\n}\n\n/*\n * An action triggered upon a failed auth storage operation.\n */\nexport class DaffAuthStorageFailure implements Action {\n readonly type = DaffAuthActionTypes.AuthStorageFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/*\n * 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\n/**\n * An action triggered when the user authentication flow is completed.\n * The auth token is in storage at this point.\n */\nexport class DaffAuthComplete implements Action {\n readonly type = DaffAuthActionTypes.AuthCompleteAction;\n}\n\nexport type DaffAuthActions =\n | DaffAuthGuardCheckCompletion\n | DaffAuthGuardCheck\n | DaffAuthStorageFailure\n | DaffAuthServerSide\n | DaffAuthCheck\n | DaffAuthCheckSuccess\n | DaffAuthCheckFailure\n | DaffAuthComplete;\n","import { Action } from '@ngrx/store';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthLoginActionTypes {\n LoginAction = '[@daffodil/auth] Login Action',\n LoginSuccessAction = '[@daffodil/auth] Login Success Action',\n LoginFailureAction = '[@daffodil/auth] Login Failure Action',\n LogoutAction = '[@daffodil/auth] Logout Action',\n LogoutSuccessAction = '[@daffodil/auth] Logout Success Action',\n LogoutFailureAction = '[@daffodil/auth] Logout Failure Action',\n}\n\n/**\n * An action triggered to initialize a auth login request.\n */\nexport class DaffAuthLogin<T extends DaffLoginInfo = DaffLoginInfo> implements Action {\n readonly type = DaffAuthLoginActionTypes.LoginAction;\n\n constructor(public loginInfo: T) {}\n}\n\n/**\n * An action triggered upon a successful auth login.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthLoginSuccess<T extends DaffAuthToken = DaffAuthToken> implements Action {\n readonly type = DaffAuthLoginActionTypes.LoginSuccessAction;\n\n constructor(public auth: T) {}\n}\n\n/**\n * An action triggered upon a failed auth login request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthLoginFailure implements Action {\n readonly type = DaffAuthLoginActionTypes.LoginFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered to initialize a logout request.\n */\nexport class DaffAuthLogout implements Action {\n readonly type = DaffAuthLoginActionTypes.LogoutAction;\n}\n\n/**\n * An action triggered upon a successful logout.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthLogoutSuccess implements Action {\n readonly type = DaffAuthLoginActionTypes.LogoutSuccessAction;\n}\n\n/**\n * An action triggered upon a failed logout request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthLogoutFailure implements Action {\n readonly type = DaffAuthLoginActionTypes.LogoutFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\nexport type DaffAuthLoginActions<\n T extends DaffLoginInfo = DaffLoginInfo,\n U extends DaffAuthToken = DaffAuthToken,\n> =\n | DaffAuthLogin<T>\n | DaffAuthLoginSuccess<U>\n | DaffAuthLoginFailure\n | DaffAuthLogout\n | DaffAuthLogoutSuccess\n | DaffAuthLogoutFailure;\n","import { Action } from '@ngrx/store';\n\nimport { DaffAccountRegistration } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthRegisterActionTypes {\n RegisterAction = '[@daffodil/auth] Register Action',\n RegisterSuccessAction = '[@daffodil/auth] Register Success Action',\n RegisterFailureAction = '[@daffodil/auth] Register Failure Action',\n}\n\n/**\n * An action triggered to initialize a auth register request.\n *\n * @param registration\n */\nexport class DaffAuthRegister<T extends DaffAccountRegistration = DaffAccountRegistration> implements Action {\n readonly type = DaffAuthRegisterActionTypes.RegisterAction;\n\n constructor(public registration: T, public autoLogin = true) {}\n}\n\n/**\n * An action triggered upon a successful auth register request.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthRegisterSuccess implements Action {\n readonly type = DaffAuthRegisterActionTypes.RegisterSuccessAction;\n\n constructor(public token?: string) {}\n}\n\n/**\n * An action triggered upon a failed auth request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthRegisterFailure implements Action {\n readonly type = DaffAuthRegisterActionTypes.RegisterFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\nexport type DaffAuthRegisterActions<\n T extends DaffAccountRegistration = DaffAccountRegistration,\n> =\n | DaffAuthRegister<T>\n | DaffAuthRegisterSuccess\n | DaffAuthRegisterFailure;\n","import { Action } from '@ngrx/store';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthResetPasswordActionTypes {\n SendResetEmailAction = '[@daffodil/auth] Send Reset Email Action',\n SendResetEmailSuccessAction = '[@daffodil/auth] Send Reset Email Success Action',\n SendResetEmailFailureAction = '[@daffodil/auth] Send Reset Email Failure Action',\n ResetPasswordAction = '[@daffodil/auth] Reset Password Action',\n ResetPasswordSuccessAction = '[@daffodil/auth] Reset Password Success Action',\n ResetPasswordFailureAction = '[@daffodil/auth] Reset Password Failure Action',\n ResetPasswordLandingAction = '[@daffodil/auth] Reset Password Landing Action',\n}\n\n/**\n * An action triggered to send the specified customer an email to reset their password.\n */\nexport class DaffSendResetEmail implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailAction;\n\n constructor(public email: string) {}\n}\n\n/**\n * An action triggered upon a successfully sent reset password email.\n */\nexport class DaffSendResetEmailSuccess implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailSuccessAction;\n}\n\n/**\n * An action triggered upon a failure to send the reset password email.\n *\n * @param errorMessage - an error message\n */\nexport class DaffSendResetEmailFailure implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered to initialize a logout request.\n */\nexport class DaffResetPassword<T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo> implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordAction;\n\n constructor(public info: T, public autoLogin = true) {}\n}\n\n/**\n * An action triggered upon a successful logout.\n */\nexport class DaffResetPasswordSuccess implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction;\n}\n\n/**\n * An action triggered upon a failed logout request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffResetPasswordFailure implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered upon the user navigating to the reset password page from the link in their email.\n *\n * @param token - The token with which the password can be reset\n */\nexport class DaffResetPasswordLanding implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordLandingAction;\n\n constructor(public token: DaffAuthResetPasswordInfo['token']) {}\n}\n\nexport type DaffAuthResetPasswordActions<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n> =\n | DaffSendResetEmail\n | DaffSendResetEmailSuccess\n | DaffSendResetEmailFailure\n | DaffResetPassword<T>\n | DaffResetPasswordSuccess\n | DaffResetPasswordFailure\n | DaffResetPasswordLanding;\n","import { DaffAuthReducerState } from './auth-reducer-state.interface';\n\nexport const daffAuthInitialState: DaffAuthReducerState = {\n loading: false,\n errors: [],\n};\n","import {\n DaffAuthActionTypes,\n DaffAuthActions,\n} from '../../actions/public_api';\nimport { daffAuthInitialState } from './auth-initial-state';\nimport { DaffAuthReducerState } from './auth-reducer-state.interface';\n\nexport function daffAuthReducer(\n state = daffAuthInitialState,\n action: DaffAuthActions,\n): DaffAuthReducerState {\n switch (action.type) {\n case DaffAuthActionTypes.AuthCheckAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthActionTypes.AuthCheckSuccessAction:\n return {\n ...state,\n loading: false,\n errors: [],\n };\n\n case DaffAuthActionTypes.AuthCheckFailureAction:\n case DaffAuthActionTypes.AuthServerSideAction:\n case DaffAuthActionTypes.AuthStorageFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n default:\n return state;\n }\n}\n","import { DaffAuthLoginReducerState } from './login-reducer-state.interface';\n\nexport const daffAuthLoginInitialState: DaffAuthLoginReducerState = {\n loading: false,\n errors: [],\n};\n","import {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\n\nimport {\n DaffAuthLoginActionTypes,\n DaffAuthLoginActions,\n} from '../../actions/public_api';\nimport { daffAuthLoginInitialState } from './login-initial-state';\nimport { DaffAuthLoginReducerState } from './login-reducer-state.interface';\n\nexport function daffAuthLoginReducer<\n T extends DaffLoginInfo,\n U extends DaffAuthToken,\n>(\n state = daffAuthLoginInitialState,\n action: DaffAuthLoginActions<T, U>,\n): DaffAuthLoginReducerState {\n switch (action.type) {\n case DaffAuthLoginActionTypes.LoginAction:\n case DaffAuthLoginActionTypes.LogoutAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthLoginActionTypes.LoginSuccessAction:\n case DaffAuthLoginActionTypes.LogoutSuccessAction:\n return {\n ...state,\n loading: false,\n errors: [],\n };\n\n case DaffAuthLoginActionTypes.LoginFailureAction:\n case DaffAuthLoginActionTypes.LogoutFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n default:\n return state;\n }\n}\n","import { DaffAuthRegisterReducerState } from './register-reducer-state.interface';\n\nexport const daffAuthRegisterInitialState: DaffAuthRegisterReducerState = {\n loading: false,\n errors: [],\n};\n","import { DaffAccountRegistration } from '@daffodil/auth';\n\nimport {\n DaffAuthRegisterActionTypes,\n DaffAuthRegisterActions,\n} from '../../actions/public_api';\nimport { daffAuthRegisterInitialState } from './register-initial-state';\nimport { DaffAuthRegisterReducerState } from './register-reducer-state.interface';\n\nexport function daffAuthRegisterReducer<\n T extends DaffAccountRegistration,\n>(\n state = daffAuthRegisterInitialState,\n action: DaffAuthRegisterActions<T>,\n): DaffAuthRegisterReducerState {\n switch (action.type) {\n case DaffAuthRegisterActionTypes.RegisterAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthRegisterActionTypes.RegisterSuccessAction:\n return {\n ...state,\n loading: false,\n errors: [],\n };\n\n case DaffAuthRegisterActionTypes.RegisterFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n default:\n return state;\n }\n}\n","import { DaffAuthResetPasswordReducerState } from './state.interface';\n\nexport const daffAuthResetPasswordInitialState: DaffAuthResetPasswordReducerState = {\n loading: false,\n errors: [],\n token: null,\n};\n","import { DaffAuthResetPasswordInfo } from '@daffodil/auth';\n\nimport {\n DaffAuthResetPasswordActionTypes,\n DaffAuthResetPasswordActions,\n} from '../../actions/public_api';\nimport { daffAuthResetPasswordInitialState } from './initial-state';\nimport { DaffAuthResetPasswordReducerState } from './state.interface';\n\nexport function daffAuthResetPasswordReducer<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n>(\n state = daffAuthResetPasswordInitialState,\n action: DaffAuthResetPasswordActions<T>,\n): DaffAuthResetPasswordReducerState {\n switch (action.type) {\n case DaffAuthResetPasswordActionTypes.ResetPasswordAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailSuccessAction:\n return {\n ...state,\n loading: false,\n errors: [],\n };\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordFailureAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordLandingAction:\n return {\n ...state,\n token: action.token,\n };\n\n default:\n return state;\n }\n}\n","export const DAFF_AUTH_STORE_FEATURE_KEY = 'daffAuth';\n","import { ActionReducerMap } from '@ngrx/store';\n\nimport { DaffAuthFeatureState } from './auth-feature-state.interface';\nimport { daffAuthReducer } from './auth/public_api';\nimport { daffAuthLoginReducer } from './login/public_api';\nimport { daffAuthRegisterReducer } from './register/public_api';\nimport { daffAuthResetPasswordReducer } from './reset-password/public_api';\n\nexport const daffAuthReducers: ActionReducerMap<DaffAuthFeatureState> = {\n auth: daffAuthReducer,\n login: daffAuthLoginReducer,\n register: daffAuthRegisterReducer,\n resetPassword: daffAuthResetPasswordReducer,\n};\n","import {\n createFeatureSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport {\n DaffAuthFeatureState,\n DAFF_AUTH_STORE_FEATURE_KEY,\n} from '../reducers/public_api';\n\n/**\n * Feature State Selector\n */\nexport const getDaffAuthFeatureStateSelector = (() => {\n let cache;\n return (): MemoizedSelector<Record<string, any>, DaffAuthFeatureState> =>\n cache = cache || createFeatureSelector<DaffAuthFeatureState>(DAFF_AUTH_STORE_FEATURE_KEY);\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffAuthToken } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface AuthSelectors {\n selectAuthState: MemoizedSelector<Record<string, any>, DaffAuthReducerState>;\n selectAuthLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n}\n\nconst createAuthSelectors = <T extends DaffAuthToken = DaffAuthToken>() => {\n const selectAuthState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.auth,\n );\n\n const selectAuthLoading = createSelector(\n selectAuthState,\n state => state.loading,\n );\n\n const selectAuthErrors = createSelector(\n selectAuthState,\n state => state.errors,\n );\n\n return {\n selectAuthState,\n selectAuthLoading,\n selectAuthErrors,\n };\n};\n\nexport const getAuthSelectors = (() => {\n let cache;\n return <T extends DaffAuthToken = DaffAuthToken>(): AuthSelectors =>\n cache = cache || createAuthSelectors<T>();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthLoginReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthLoginSelectors {\n selectAuthLoginState: MemoizedSelector<Record<string, any>, DaffAuthLoginReducerState>;\n selectAuthLoginLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthLoginErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n}\n\nconst createLoginSelectors = () => {\n const selectAuthLoginState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.login,\n );\n\n const selectAuthLoginLoading = createSelector(\n selectAuthLoginState,\n state => state.loading,\n );\n\n const selectAuthLoginErrors = createSelector(\n selectAuthLoginState,\n state => state.errors,\n );\n\n return {\n selectAuthLoginState,\n selectAuthLoginLoading,\n selectAuthLoginErrors,\n };\n};\n\nexport const getDaffAuthLoginSelectors = (() => {\n let cache;\n return (): DaffAuthLoginSelectors =>\n cache = cache || createLoginSelectors();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffAuthToken } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthRegisterReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthRegisterSelectors {\n selectAuthRegisterState: MemoizedSelector<Record<string, any>, DaffAuthRegisterReducerState>;\n selectAuthRegisterLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthRegisterErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n}\n\nconst createRegisterSelectors = <T extends DaffAuthToken = DaffAuthToken>() => {\n const selectAuthRegisterState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.register,\n );\n\n const selectAuthRegisterLoading = createSelector(\n selectAuthRegisterState,\n state => state.loading,\n );\n\n const selectAuthRegisterErrors = createSelector(\n selectAuthRegisterState,\n state => state.errors,\n );\n\n return {\n selectAuthRegisterState,\n selectAuthRegisterLoading,\n selectAuthRegisterErrors,\n };\n};\n\nexport const getDaffAuthRegisterSelectors = (() => {\n let cache;\n return <T extends DaffAuthToken = DaffAuthToken>(): DaffAuthRegisterSelectors =>\n cache = cache || createRegisterSelectors<T>();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthResetPasswordReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthResetPasswordSelectors {\n selectAuthResetPasswordState: MemoizedSelector<Record<string, any>, DaffAuthResetPasswordReducerState>;\n selectAuthResetPasswordLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthResetPasswordErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n selectAuthResetPasswordToken: MemoizedSelector<Record<string, any>, DaffAuthResetPasswordInfo['token']>;\n}\n\nconst createResetPasswordSelectors = (): DaffAuthResetPasswordSelectors => {\n const selectAuthResetPasswordState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.resetPassword,\n );\n\n const selectAuthResetPasswordLoading = createSelector(\n selectAuthResetPasswordState,\n state => state.loading,\n );\n\n const selectAuthResetPasswordErrors = createSelector(\n selectAuthResetPasswordState,\n state => state.errors,\n );\n\n const selectAuthResetPasswordToken = createSelector(\n selectAuthResetPasswordState,\n state => state.token,\n );\n\n return {\n selectAuthResetPasswordState,\n selectAuthResetPasswordLoading,\n selectAuthResetPasswordErrors,\n selectAuthResetPasswordToken,\n };\n};\n\nexport const getDaffAuthResetPasswordSelectors = (() => {\n let cache;\n return (): DaffAuthResetPasswordSelectors =>\n cache = cache || createResetPasswordSelectors();\n})();\n","import { MemoizedSelector } from '@ngrx/store';\n\nimport { DaffAuthFeatureState } from '../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from './auth-feature.selector';\nimport {\n getAuthSelectors,\n AuthSelectors,\n} from './auth/auth.selector';\nimport {\n getDaffAuthLoginSelectors,\n DaffAuthLoginSelectors,\n} from './login/login.selector';\nimport {\n getDaffAuthRegisterSelectors,\n DaffAuthRegisterSelectors,\n} from './register/register.selector';\nimport {\n DaffAuthResetPasswordSelectors,\n getDaffAuthResetPasswordSelectors,\n} from './reset-password/selector';\n\nexport interface DaffAuthSelectors extends\n DaffAuthRegisterSelectors,\n DaffAuthLoginSelectors,\n DaffAuthResetPasswordSelectors,\n AuthSelectors {\n selectAuthFeatureState: MemoizedSelector<Record<string, any>, DaffAuthFeatureState>;\n}\n\nexport const getDaffAuthSelectors = (() => {\n let cache;\n return (): DaffAuthSelectors =>\n cache = cache || {\n ...getAuthSelectors(),\n ...getDaffAuthLoginSelectors(),\n ...getDaffAuthRegisterSelectors(),\n ...getDaffAuthResetPasswordSelectors(),\n selectAuthFeatureState: getDaffAuthFeatureStateSelector(),\n };\n})();\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffAuthToken } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthFacade<T extends DaffAuthToken = DaffAuthToken> implements DaffAuthFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthLoading,\n selectAuthErrors,\n } = getDaffAuthSelectors();\n\n this.loading$ = this.store.pipe(select(selectAuthLoading));\n this.errors$ = this.store.pipe(select(selectAuthErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthLoginFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthLoginFacade implements DaffAuthLoginFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthLoginLoading,\n selectAuthLoginErrors,\n } = getDaffAuthSelectors();\n\n this.loading$ = this.store.pipe(select(selectAuthLoginLoading));\n this.errors$ = this.store.pipe(select(selectAuthLoginErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthRegisterFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthRegisterFacade implements DaffAuthRegisterFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthRegisterLoading,\n selectAuthRegisterErrors,\n } = getDaffAuthSelectors();\n\n this.loading$ = this.store.pipe(select(selectAuthRegisterLoading));\n this.errors$ = this.store.pipe(select(selectAuthRegisterErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthResetPasswordFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthResetPasswordFacade implements DaffAuthResetPasswordFacadeInterface {\n token$: Observable<DaffAuthResetPasswordInfo['token']>;\n\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthResetPasswordLoading,\n selectAuthResetPasswordErrors,\n selectAuthResetPasswordToken,\n } = getDaffAuthSelectors();\n\n this.token$ = this.store.pipe(select(selectAuthResetPasswordToken));\n\n this.loading$ = this.store.pipe(select(selectAuthResetPasswordLoading));\n this.errors$ = this.store.pipe(select(selectAuthResetPasswordErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { DaffAuthStateConfig } from './type';\n\nconst TWENTY_MINUTES = 1.2e6;\n\nexport const daffAuthStateDefaultConfig: DaffAuthStateConfig = {\n checkInterval: TWENTY_MINUTES,\n};\n","import {\n InjectionToken,\n ValueProvider,\n} from '@angular/core';\n\nimport { daffAuthStateDefaultConfig } from './default';\nimport { DaffAuthStateConfig } from './type';\n\nexport const DAFF_AUTH_STATE_CONFIG = new InjectionToken('DAFF_AUTH_STATE_CONFIG', { factory: () => daffAuthStateDefaultConfig });\n\nexport const provideDaffAuthStateConfig = (config: DaffAuthStateConfig): ValueProvider => ({\n provide: DAFF_AUTH_STATE_CONFIG,\n useValue: config,\n});\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n EMPTY,\n} from 'rxjs';\nimport {\n switchMap,\n catchError,\n map,\n repeat,\n filter,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffAuthStorageService,\n DAFF_AUTH_ERROR_MATCHER,\n} from '@daffodil/auth';\nimport {\n DaffAuthDriver,\n DaffAuthServiceInterface,\n} from '@daffodil/auth/driver';\nimport {\n DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthActionTypes,\n DaffAuthCheckSuccess,\n DaffAuthCheckFailure,\n DaffAuthCheck,\n DaffAuthGuardCheckCompletion,\n DaffAuthGuardCheck,\n DaffAuthStorageFailure,\n DaffAuthServerSide,\n} from '../actions/public_api';\nimport {\n DaffAuthStateConfig,\n DAFF_AUTH_STATE_CONFIG,\n} from '../config/public_api';\n\n@Injectable()\nexport class DaffAuthEffects {\n constructor(\n private actions$: Actions,\n @Inject(DaffAuthDriver) private authDriver: DaffAuthServiceInterface,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n @Inject(DAFF_AUTH_STATE_CONFIG) private config: DaffAuthStateConfig,\n ) {}\n\n check$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthActionTypes.AuthCheckAction),\n switchMap((action: DaffAuthCheck) =>\n this.authDriver.check().pipe(\n map(() => new DaffAuthCheckSuccess()),\n catchError((error: DaffError) => of(new DaffAuthCheckFailure(this.errorMatcher(error)))),\n ),\n ),\n ));\n\n guardCheck$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthActionTypes.AuthGuardCheckAction),\n switchMap((action: DaffAuthGuardCheck) =>\n this.authDriver.check().pipe(\n map(() => new DaffAuthGuardCheckCompletion(true)),\n catchError((error: DaffError) => of(new DaffAuthGuardCheckCompletion(false))),\n ),\n ),\n ));\n\n removeAuthToken$ = createEffect(() => this.actions$.pipe(\n ofType<DaffAuthCheckFailure | DaffAuthGuardCheckCompletion>(\n DaffAuthActionTypes.AuthGuardCheckCompletionAction,\n DaffAuthActionTypes.AuthCheckFailureAction,\n ),\n filter(action => {\n // don't remove token when guard check completes with true result\n if (action.type === DaffAuthActionTypes.AuthGuardCheckCompletionAction && action.result) {\n return false;\n }\n\n return true;\n }),\n tap(() => {\n this.storage.removeAuthToken();\n }),\n switchMap(() => EMPTY),\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 default:\n return of(new DaffAuthStorageFailure(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(() => of(new DaffAuthCheck()).pipe(\n repeat({ delay: this.config.checkInterval }),\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","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n EMPTY,\n} from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n DAFF_AUTH_ERROR_MATCHER,\n DaffAuthStorageService,\n} from '@daffodil/auth';\nimport {\n DaffLoginDriver,\n DaffLoginServiceInterface,\n} from '@daffodil/auth/driver';\nimport {\n DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthLoginActionTypes,\n DaffAuthLogin,\n DaffAuthLoginSuccess,\n DaffAuthLoginFailure,\n DaffAuthLogoutSuccess,\n DaffAuthLogoutFailure,\n DaffAuthLogout,\n DaffAuthStorageFailure,\n DaffAuthComplete,\n DaffAuthServerSide,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffAuthLoginEffects<\n T extends DaffLoginInfo = DaffLoginInfo,\n U extends DaffAuthToken = DaffAuthToken,\n> {\n constructor(\n private actions$: Actions,\n @Inject(DaffLoginDriver) private loginDriver: DaffLoginServiceInterface<T, U>,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n ) {}\n\n login$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LoginAction),\n switchMap((action: DaffAuthLogin<T>) =>\n this.loginDriver.login(action.loginInfo).pipe(\n map((resp) =>\n new DaffAuthLoginSuccess<U>(resp),\n ),\n catchError((error: DaffError) =>\n of(new DaffAuthLoginFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n logout$ = 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 of(new DaffAuthLogoutFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n removeAuthToken$ = createEffect(() => this.actions$.pipe(\n ofType<DaffAuthLogoutSuccess>(\n DaffAuthLoginActionTypes.LogoutSuccessAction,\n ),\n tap(() => {\n this.storage.removeAuthToken();\n }),\n switchMap(() => EMPTY),\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 default:\n return of(new DaffAuthStorageFailure(this.errorMatcher(error)));\n }\n }),\n ));\n\n storeAuthToken$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LoginSuccessAction),\n tap((action: DaffAuthLoginSuccess<U>) => {\n this.storage.setAuthToken(action.auth.token);\n }),\n map(() => new DaffAuthComplete()),\n catchError((error: Error) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(new DaffAuthServerSide(this.errorMatcher(error)));\n\n case error instanceof DaffStorageServiceError:\n default:\n return of(new DaffAuthStorageFailure(this.errorMatcher(error)));\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 DAFF_AUTH_ERROR_MATCHER,\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 DaffAuthRegister,\n DaffAuthRegisterSuccess,\n DaffAuthRegisterFailure,\n DaffAuthComplete,\n DaffAuthServerSide,\n DaffAuthStorageFailure,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffAuthRegisterEffects<\n T extends DaffAccountRegistration = DaffAccountRegistration,\n> {\n constructor(\n private actions$: Actions,\n @Inject(DaffRegisterDriver) private registerDriver: DaffRegisterServiceInterface<T>,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n ) {}\n\n register$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthRegisterActionTypes.RegisterAction),\n switchMap((action: DaffAuthRegister<T>) =>\n iif(\n () => action.autoLogin,\n defer(() => this.registerDriver.register(action.registration).pipe(\n tap(token => this.storage.setAuthToken(token)),\n switchMap(() => of(new DaffAuthRegisterSuccess(), new DaffAuthComplete())),\n )),\n defer(() => this.registerDriver.registerOnly(action.registration).pipe(\n map(() => new DaffAuthRegisterSuccess()),\n )),\n ).pipe(\n catchError((error: DaffError) => {\n 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 DAFF_AUTH_ERROR_MATCHER,\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 DaffAuthComplete,\n DaffAuthServerSide,\n DaffAuthStorageFailure,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffAuthResetPasswordEffects<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n> {\n constructor(\n private actions$: Actions,\n @Inject(DaffResetPasswordDriver) private driver: DaffResetPasswordServiceInterface<T>,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n ) {}\n\n sendResetEmail$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthResetPasswordActionTypes.SendResetEmailAction),\n switchMap((action: DaffSendResetEmail) =>\n this.driver.sendResetEmail(action.email).pipe(\n map(() =>\n new DaffSendResetEmailSuccess(),\n ),\n catchError((error: DaffError) =>\n of(new DaffSendResetEmailFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n resetPassword$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthResetPasswordActionTypes.ResetPasswordAction),\n switchMap((action: DaffResetPassword<T>) =>\n iif(\n () => action.autoLogin,\n defer(() => this.driver.resetPassword(action.info).pipe(\n tap(token => this.storage.setAuthToken(token)),\n switchMap(() => of(new DaffResetPasswordSuccess(), new DaffAuthComplete())),\n )),\n defer(() => this.driver.resetPasswordOnly(action.info).pipe(\n map(() => new DaffResetPasswordSuccess()),\n )),\n ).pipe(\n catchError((error: DaffError) => {\n 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 {\n ModuleWithProviders,\n NgModule,\n} from '@angular/core';\nimport { EffectsModule } from '@ngrx/effects';\nimport { StoreModule } from '@ngrx/store';\n\nimport {\n DaffAuthStateConfig,\n provideDaffAuthStateConfig,\n} from './config/public_api';\nimport { DaffAuthEffects } from './effects/auth.effects';\nimport { DaffAuthLoginEffects } from './effects/login.effects';\nimport { DaffAuthRegisterEffects } from './effects/register.effects';\nimport { DaffAuthResetPasswordEffects } from './effects/reset-password.effects';\nimport {\n DAFF_AUTH_STORE_FEATURE_KEY,\n daffAuthReducers,\n} from './reducers/public_api';\n\n@NgModule({\n imports: [\n StoreModule.forFeature(DAFF_AUTH_STORE_FEATURE_KEY, daffAuthReducers),\n EffectsModule.forFeature([\n DaffAuthEffects,\n DaffAuthLoginEffects,\n DaffAuthRegisterEffects,\n DaffAuthResetPasswordEffects,\n ]),\n ],\n})\nexport class DaffAuthStateModule {\n static withConfig(config: DaffAuthStateConfig): ModuleWithProviders<DaffAuthStateModule> {\n return {\n ngModule: DaffAuthStateModule,\n providers: [\n provideDaffAuthStateConfig(config),\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;AAIY,IAAA,oBASX;AATD,CAAA,UAAY,mBAAmB,EAAA;AAC7B,IAAA,mBAAA,CAAA,sBAAA,CAAA,GAAA,0CAAiE,CAAA;AACjE,IAAA,mBAAA,CAAA,gCAAA,CAAA,GAAA,qDAAsF,CAAA;AACtF,IAAA,mBAAA,CAAA,0BAAA,CAAA,GAAA,8CAAyE,CAAA;AACzE,IAAA,mBAAA,CAAA,sBAAA,CAAA,GAAA,0CAAiE,CAAA;AACjE,IAAA,mBAAA,CAAA,iBAAA,CAAA,GAAA,oCAAsD,CAAA;AACtD,IAAA,mBAAA,CAAA,wBAAA,CAAA,GAAA,4CAAqE,CAAA;AACrE,IAAA,mBAAA,CAAA,wBAAA,CAAA,GAAA,4CAAqE,CAAA;AACrE,IAAA,mBAAA,CAAA,oBAAA,CAAA,GAAA,uCAA4D,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+4,19 @@ import * as i0 from '@angular/core';
|
|
|
4
4
|
import { Injectable, InjectionToken, Inject, NgModule } from '@angular/core';
|
|
5
5
|
import * as i1$1 from '@ngrx/effects';
|
|
6
6
|
import { createEffect, ofType, EffectsModule } from '@ngrx/effects';
|
|
7
|
-
import { of, iif, defer } from 'rxjs';
|
|
8
|
-
import { switchMap, map, catchError,
|
|
7
|
+
import { of, EMPTY, iif, defer } from 'rxjs';
|
|
8
|
+
import { switchMap, map, catchError, filter, tap, repeat } from 'rxjs/operators';
|
|
9
9
|
import * as i2 from '@daffodil/auth';
|
|
10
10
|
import { DAFF_AUTH_ERROR_MATCHER } from '@daffodil/auth';
|
|
11
11
|
import { DaffAuthDriver, DaffLoginDriver, DaffRegisterDriver, DaffResetPasswordDriver } from '@daffodil/auth/driver';
|
|
12
|
+
import { DaffStorageServiceError, DaffServerSideStorageError } from '@daffodil/core';
|
|
12
13
|
|
|
13
14
|
var DaffAuthActionTypes;
|
|
14
15
|
(function (DaffAuthActionTypes) {
|
|
15
16
|
DaffAuthActionTypes["AuthGuardCheckAction"] = "[@daffodil/auth] Auth Guard Check Action";
|
|
16
17
|
DaffAuthActionTypes["AuthGuardCheckCompletionAction"] = "[@daffodil/auth] Auth Guard Check Completion Action";
|
|
17
18
|
DaffAuthActionTypes["AuthStorageFailureAction"] = "[@daffodil/auth] Auth Storage Failure Action";
|
|
19
|
+
DaffAuthActionTypes["AuthServerSideAction"] = "[@daffodil/auth] Auth Server Side Action";
|
|
18
20
|
DaffAuthActionTypes["AuthCheckAction"] = "[@daffodil/auth] Auth Check Action";
|
|
19
21
|
DaffAuthActionTypes["AuthCheckSuccessAction"] = "[@daffodil/auth] Auth Check Success Action";
|
|
20
22
|
DaffAuthActionTypes["AuthCheckFailureAction"] = "[@daffodil/auth] Auth Check Failure Action";
|
|
@@ -46,6 +48,16 @@ class DaffAuthStorageFailure {
|
|
|
46
48
|
this.type = DaffAuthActionTypes.AuthStorageFailureAction;
|
|
47
49
|
}
|
|
48
50
|
}
|
|
51
|
+
/*
|
|
52
|
+
* An action triggered when an invalid operation is performed in the server environment.
|
|
53
|
+
* A common example is trying to access the auth token from storage.
|
|
54
|
+
*/
|
|
55
|
+
class DaffAuthServerSide {
|
|
56
|
+
constructor(errorMessage) {
|
|
57
|
+
this.errorMessage = errorMessage;
|
|
58
|
+
this.type = DaffAuthActionTypes.AuthServerSideAction;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
49
61
|
/**
|
|
50
62
|
* An action triggered to initialize an auth check request.
|
|
51
63
|
*/
|
|
@@ -294,6 +306,8 @@ function daffAuthReducer(state = daffAuthInitialState, action) {
|
|
|
294
306
|
errors: [],
|
|
295
307
|
};
|
|
296
308
|
case DaffAuthActionTypes.AuthCheckFailureAction:
|
|
309
|
+
case DaffAuthActionTypes.AuthServerSideAction:
|
|
310
|
+
case DaffAuthActionTypes.AuthStorageFailureAction:
|
|
297
311
|
return {
|
|
298
312
|
...state,
|
|
299
313
|
loading: false,
|
|
@@ -604,16 +618,36 @@ class DaffAuthEffects {
|
|
|
604
618
|
this.errorMatcher = errorMatcher;
|
|
605
619
|
this.storage = storage;
|
|
606
620
|
this.config = config;
|
|
607
|
-
this.check$ = createEffect(() => this.actions$.pipe(ofType(DaffAuthActionTypes.AuthCheckAction), switchMap((action) => this.authDriver.check().pipe(map(() => new DaffAuthCheckSuccess()), catchError((error) =>
|
|
621
|
+
this.check$ = createEffect(() => this.actions$.pipe(ofType(DaffAuthActionTypes.AuthCheckAction), switchMap((action) => this.authDriver.check().pipe(map(() => new DaffAuthCheckSuccess()), catchError((error) => of(new DaffAuthCheckFailure(this.errorMatcher(error))))))));
|
|
622
|
+
this.guardCheck$ = createEffect(() => this.actions$.pipe(ofType(DaffAuthActionTypes.AuthGuardCheckAction), switchMap((action) => this.authDriver.check().pipe(map(() => new DaffAuthGuardCheckCompletion(true)), catchError((error) => of(new DaffAuthGuardCheckCompletion(false)))))));
|
|
623
|
+
this.removeAuthToken$ = createEffect(() => this.actions$.pipe(ofType(DaffAuthActionTypes.AuthGuardCheckCompletionAction, DaffAuthActionTypes.AuthCheckFailureAction), filter(action => {
|
|
624
|
+
// don't remove token when guard check completes with true result
|
|
625
|
+
if (action.type === DaffAuthActionTypes.AuthGuardCheckCompletionAction && action.result) {
|
|
626
|
+
return false;
|
|
627
|
+
}
|
|
628
|
+
return true;
|
|
629
|
+
}), tap(() => {
|
|
608
630
|
this.storage.removeAuthToken();
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
631
|
+
}), switchMap(() => EMPTY), catchError((error) => {
|
|
632
|
+
switch (true) {
|
|
633
|
+
case error instanceof DaffServerSideStorageError:
|
|
634
|
+
return of(new DaffAuthServerSide(this.errorMatcher(error)));
|
|
635
|
+
case error instanceof DaffStorageServiceError:
|
|
636
|
+
default:
|
|
637
|
+
return of(new DaffAuthStorageFailure(this.errorMatcher(error)));
|
|
638
|
+
}
|
|
639
|
+
})));
|
|
615
640
|
// this needs to be defined after `check$` or else the driver call won't be run
|
|
616
|
-
this.authCheckInterval$ = createEffect(() => of(new DaffAuthCheck()).pipe(repeat({ delay: this.config.checkInterval }), filter(() => !!this.storage.getAuthToken()))
|
|
641
|
+
this.authCheckInterval$ = createEffect(() => of(new DaffAuthCheck()).pipe(repeat({ delay: this.config.checkInterval }), filter(() => !!this.storage.getAuthToken()), catchError((error) => {
|
|
642
|
+
switch (true) {
|
|
643
|
+
case error instanceof DaffServerSideStorageError:
|
|
644
|
+
return of(new DaffAuthServerSide(this.errorMatcher(error)));
|
|
645
|
+
case error instanceof DaffStorageServiceError:
|
|
646
|
+
return of(new DaffAuthStorageFailure(this.errorMatcher(error)));
|
|
647
|
+
default:
|
|
648
|
+
return EMPTY;
|
|
649
|
+
}
|
|
650
|
+
})));
|
|
617
651
|
}
|
|
618
652
|
}
|
|
619
653
|
/** @nocollapse */ DaffAuthEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthEffects, deps: [{ token: i1$1.Actions }, { token: DaffAuthDriver }, { token: DAFF_AUTH_ERROR_MATCHER }, { token: i2.DaffAuthStorageService }, { token: DAFF_AUTH_STATE_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -638,12 +672,29 @@ class DaffAuthLoginEffects {
|
|
|
638
672
|
this.errorMatcher = errorMatcher;
|
|
639
673
|
this.storage = storage;
|
|
640
674
|
this.login$ = createEffect(() => this.actions$.pipe(ofType(DaffAuthLoginActionTypes.LoginAction), switchMap((action) => this.loginDriver.login(action.loginInfo).pipe(map((resp) => new DaffAuthLoginSuccess(resp)), catchError((error) => of(new DaffAuthLoginFailure(this.errorMatcher(error))))))));
|
|
641
|
-
this.logout$ = createEffect(() => this.actions$.pipe(ofType(DaffAuthLoginActionTypes.LogoutAction), switchMap((action) => this.loginDriver.logout().pipe(map(() => new DaffAuthLogoutSuccess()),
|
|
675
|
+
this.logout$ = createEffect(() => this.actions$.pipe(ofType(DaffAuthLoginActionTypes.LogoutAction), switchMap((action) => this.loginDriver.logout().pipe(map(() => new DaffAuthLogoutSuccess()), catchError((error) => of(new DaffAuthLogoutFailure(this.errorMatcher(error))))))));
|
|
676
|
+
this.removeAuthToken$ = createEffect(() => this.actions$.pipe(ofType(DaffAuthLoginActionTypes.LogoutSuccessAction), tap(() => {
|
|
642
677
|
this.storage.removeAuthToken();
|
|
643
|
-
}),
|
|
678
|
+
}), switchMap(() => EMPTY), catchError((error) => {
|
|
679
|
+
switch (true) {
|
|
680
|
+
case error instanceof DaffServerSideStorageError:
|
|
681
|
+
return of(new DaffAuthServerSide(this.errorMatcher(error)));
|
|
682
|
+
case error instanceof DaffStorageServiceError:
|
|
683
|
+
default:
|
|
684
|
+
return of(new DaffAuthStorageFailure(this.errorMatcher(error)));
|
|
685
|
+
}
|
|
686
|
+
})));
|
|
644
687
|
this.storeAuthToken$ = createEffect(() => this.actions$.pipe(ofType(DaffAuthLoginActionTypes.LoginSuccessAction), tap((action) => {
|
|
645
688
|
this.storage.setAuthToken(action.auth.token);
|
|
646
|
-
}), map(() => new DaffAuthComplete()), catchError((error) =>
|
|
689
|
+
}), map(() => new DaffAuthComplete()), catchError((error) => {
|
|
690
|
+
switch (true) {
|
|
691
|
+
case error instanceof DaffServerSideStorageError:
|
|
692
|
+
return of(new DaffAuthServerSide(this.errorMatcher(error)));
|
|
693
|
+
case error instanceof DaffStorageServiceError:
|
|
694
|
+
default:
|
|
695
|
+
return of(new DaffAuthStorageFailure(this.errorMatcher(error)));
|
|
696
|
+
}
|
|
697
|
+
})));
|
|
647
698
|
}
|
|
648
699
|
}
|
|
649
700
|
/** @nocollapse */ DaffAuthLoginEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthLoginEffects, deps: [{ token: i1$1.Actions }, { token: DaffLoginDriver }, { token: DAFF_AUTH_ERROR_MATCHER }, { token: i2.DaffAuthStorageService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -664,7 +715,16 @@ class DaffAuthRegisterEffects {
|
|
|
664
715
|
this.registerDriver = registerDriver;
|
|
665
716
|
this.errorMatcher = errorMatcher;
|
|
666
717
|
this.storage = storage;
|
|
667
|
-
this.register$ = createEffect(() => this.actions$.pipe(ofType(DaffAuthRegisterActionTypes.RegisterAction), switchMap((action) => iif(() => action.autoLogin, defer(() => this.registerDriver.register(action.registration).pipe(tap(token => this.storage.setAuthToken(token)), switchMap(() => of(new DaffAuthRegisterSuccess(), new DaffAuthComplete())))), defer(() => this.registerDriver.registerOnly(action.registration).pipe(map(() => new DaffAuthRegisterSuccess())))).pipe(catchError((error) =>
|
|
718
|
+
this.register$ = createEffect(() => this.actions$.pipe(ofType(DaffAuthRegisterActionTypes.RegisterAction), switchMap((action) => iif(() => action.autoLogin, defer(() => this.registerDriver.register(action.registration).pipe(tap(token => this.storage.setAuthToken(token)), switchMap(() => of(new DaffAuthRegisterSuccess(), new DaffAuthComplete())))), defer(() => this.registerDriver.registerOnly(action.registration).pipe(map(() => new DaffAuthRegisterSuccess())))).pipe(catchError((error) => {
|
|
719
|
+
switch (true) {
|
|
720
|
+
case error instanceof DaffServerSideStorageError:
|
|
721
|
+
return of(new DaffAuthServerSide(this.errorMatcher(error)), new DaffAuthRegisterFailure(this.errorMatcher(error)));
|
|
722
|
+
case error instanceof DaffStorageServiceError:
|
|
723
|
+
return of(new DaffAuthStorageFailure(this.errorMatcher(error)), new DaffAuthRegisterFailure(this.errorMatcher(error)));
|
|
724
|
+
default:
|
|
725
|
+
return of(new DaffAuthRegisterFailure(this.errorMatcher(error)));
|
|
726
|
+
}
|
|
727
|
+
})))));
|
|
668
728
|
}
|
|
669
729
|
}
|
|
670
730
|
/** @nocollapse */ DaffAuthRegisterEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthRegisterEffects, deps: [{ token: i1$1.Actions }, { token: DaffRegisterDriver }, { token: DAFF_AUTH_ERROR_MATCHER }, { token: i2.DaffAuthStorageService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -686,7 +746,16 @@ class DaffAuthResetPasswordEffects {
|
|
|
686
746
|
this.errorMatcher = errorMatcher;
|
|
687
747
|
this.storage = storage;
|
|
688
748
|
this.sendResetEmail$ = createEffect(() => this.actions$.pipe(ofType(DaffAuthResetPasswordActionTypes.SendResetEmailAction), switchMap((action) => this.driver.sendResetEmail(action.email).pipe(map(() => new DaffSendResetEmailSuccess()), catchError((error) => of(new DaffSendResetEmailFailure(this.errorMatcher(error))))))));
|
|
689
|
-
this.resetPassword$ = createEffect(() => this.actions$.pipe(ofType(DaffAuthResetPasswordActionTypes.ResetPasswordAction), switchMap((action) => iif(() => action.autoLogin, defer(() => this.driver.resetPassword(action.info).pipe(tap(token => this.storage.setAuthToken(token)), switchMap(() => of(new DaffResetPasswordSuccess(), new DaffAuthComplete())))), defer(() => this.driver.resetPasswordOnly(action.info).pipe(map(() => new DaffResetPasswordSuccess())))).pipe(catchError((error) =>
|
|
749
|
+
this.resetPassword$ = createEffect(() => this.actions$.pipe(ofType(DaffAuthResetPasswordActionTypes.ResetPasswordAction), switchMap((action) => iif(() => action.autoLogin, defer(() => this.driver.resetPassword(action.info).pipe(tap(token => this.storage.setAuthToken(token)), switchMap(() => of(new DaffResetPasswordSuccess(), new DaffAuthComplete())))), defer(() => this.driver.resetPasswordOnly(action.info).pipe(map(() => new DaffResetPasswordSuccess())))).pipe(catchError((error) => {
|
|
750
|
+
switch (true) {
|
|
751
|
+
case error instanceof DaffServerSideStorageError:
|
|
752
|
+
return of(new DaffAuthServerSide(this.errorMatcher(error)), new DaffResetPasswordFailure(this.errorMatcher(error)));
|
|
753
|
+
case error instanceof DaffStorageServiceError:
|
|
754
|
+
return of(new DaffAuthStorageFailure(this.errorMatcher(error)), new DaffResetPasswordFailure(this.errorMatcher(error)));
|
|
755
|
+
default:
|
|
756
|
+
return of(new DaffResetPasswordFailure(this.errorMatcher(error)));
|
|
757
|
+
}
|
|
758
|
+
})))));
|
|
690
759
|
}
|
|
691
760
|
}
|
|
692
761
|
/** @nocollapse */ DaffAuthResetPasswordEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAuthResetPasswordEffects, deps: [{ token: i1$1.Actions }, { token: DaffResetPasswordDriver }, { token: DAFF_AUTH_ERROR_MATCHER }, { token: i2.DaffAuthStorageService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -741,5 +810,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
|
741
810
|
* Generated bundle index. Do not edit.
|
|
742
811
|
*/
|
|
743
812
|
|
|
744
|
-
export { DAFF_AUTH_STATE_CONFIG, DAFF_AUTH_STORE_FEATURE_KEY, DaffAuthActionTypes, DaffAuthCheck, DaffAuthCheckFailure, DaffAuthCheckSuccess, DaffAuthComplete, DaffAuthFacade, DaffAuthGuardCheck, DaffAuthGuardCheckCompletion, DaffAuthLogin, DaffAuthLoginActionTypes, DaffAuthLoginFacade, DaffAuthLoginFailure, DaffAuthLoginSuccess, DaffAuthLogout, DaffAuthLogoutFailure, DaffAuthLogoutSuccess, DaffAuthRegister, DaffAuthRegisterActionTypes, DaffAuthRegisterFacade, DaffAuthRegisterFailure, DaffAuthRegisterSuccess, DaffAuthResetPasswordActionTypes, DaffAuthResetPasswordFacade, DaffAuthStateModule, DaffAuthStorageFailure, DaffResetPassword, DaffResetPasswordFailure, DaffResetPasswordLanding, DaffResetPasswordSuccess, DaffSendResetEmail, DaffSendResetEmailFailure, DaffSendResetEmailSuccess, daffAuthInitialState, daffAuthLoginInitialState, daffAuthLoginReducer, daffAuthReducer, daffAuthReducers, daffAuthRegisterInitialState, daffAuthRegisterReducer, daffAuthResetPasswordInitialState, daffAuthResetPasswordReducer, daffAuthStateDefaultConfig, getDaffAuthSelectors, provideDaffAuthStateConfig };
|
|
813
|
+
export { DAFF_AUTH_STATE_CONFIG, DAFF_AUTH_STORE_FEATURE_KEY, DaffAuthActionTypes, DaffAuthCheck, DaffAuthCheckFailure, DaffAuthCheckSuccess, DaffAuthComplete, DaffAuthFacade, DaffAuthGuardCheck, DaffAuthGuardCheckCompletion, DaffAuthLogin, DaffAuthLoginActionTypes, DaffAuthLoginFacade, DaffAuthLoginFailure, DaffAuthLoginSuccess, DaffAuthLogout, DaffAuthLogoutFailure, DaffAuthLogoutSuccess, DaffAuthRegister, DaffAuthRegisterActionTypes, DaffAuthRegisterFacade, DaffAuthRegisterFailure, DaffAuthRegisterSuccess, DaffAuthResetPasswordActionTypes, DaffAuthResetPasswordFacade, DaffAuthServerSide, DaffAuthStateModule, DaffAuthStorageFailure, DaffResetPassword, DaffResetPasswordFailure, DaffResetPasswordLanding, DaffResetPasswordSuccess, DaffSendResetEmail, DaffSendResetEmailFailure, DaffSendResetEmailSuccess, daffAuthInitialState, daffAuthLoginInitialState, daffAuthLoginReducer, daffAuthReducer, daffAuthReducers, daffAuthRegisterInitialState, daffAuthRegisterReducer, daffAuthResetPasswordInitialState, daffAuthResetPasswordReducer, daffAuthStateDefaultConfig, getDaffAuthSelectors, provideDaffAuthStateConfig };
|
|
745
814
|
//# sourceMappingURL=daffodil-auth-state.mjs.map
|