@daffodil/auth 0.88.1 → 0.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/driver/in-memory/index.d.ts +84 -1
- package/driver/index.d.ts +135 -1
- package/driver/magento/index.d.ts +132 -1
- package/driver/testing/index.d.ts +49 -1
- package/fesm2022/daffodil-auth-driver-in-memory.mjs +19 -19
- package/fesm2022/daffodil-auth-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-auth-driver-magento.mjs +22 -22
- package/fesm2022/daffodil-auth-driver-magento.mjs.map +1 -1
- package/fesm2022/daffodil-auth-driver-testing.mjs +16 -16
- package/fesm2022/daffodil-auth-driver-testing.mjs.map +1 -1
- package/fesm2022/daffodil-auth-driver.mjs +3 -3
- package/fesm2022/daffodil-auth-driver.mjs.map +1 -1
- package/fesm2022/daffodil-auth-routing.mjs +20 -20
- package/fesm2022/daffodil-auth-routing.mjs.map +1 -1
- package/fesm2022/daffodil-auth-state-testing.mjs +16 -16
- package/fesm2022/daffodil-auth-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-auth-state.mjs +28 -28
- package/fesm2022/daffodil-auth-state.mjs.map +1 -1
- package/fesm2022/daffodil-auth-testing.mjs +9 -9
- package/fesm2022/daffodil-auth-testing.mjs.map +1 -1
- package/fesm2022/daffodil-auth.mjs +3 -3
- package/fesm2022/daffodil-auth.mjs.map +1 -1
- package/index.d.ts +76 -1
- package/package.json +1 -1
- package/routing/index.d.ts +104 -1
- package/state/index.d.ts +424 -1
- package/state/testing/index.d.ts +59 -1
- package/testing/index.d.ts +38 -1
- package/driver/constants/public_api.d.ts +0 -1
- package/driver/constants/unauthenticated-error-codes.d.ts +0 -10
- package/driver/errors/authentication-failed.d.ts +0 -6
- package/driver/errors/codes.enum.d.ts +0 -6
- package/driver/errors/invalid-api-response.d.ts +0 -6
- package/driver/errors/map.d.ts +0 -13
- package/driver/errors/public_api.d.ts +0 -6
- package/driver/errors/registration-failed.d.ts +0 -9
- package/driver/errors/unauthorized.d.ts +0 -6
- package/driver/in-memory/backend/auth.service.d.ts +0 -24
- package/driver/in-memory/collection-name.const.d.ts +0 -1
- package/driver/in-memory/drivers/auth/auth.service.d.ts +0 -16
- package/driver/in-memory/drivers/auth-driver.module.d.ts +0 -9
- package/driver/in-memory/drivers/login/login.service.d.ts +0 -18
- package/driver/in-memory/drivers/public_api.d.ts +0 -4
- package/driver/in-memory/drivers/register/register.service.d.ts +0 -20
- package/driver/in-memory/drivers/reset-password/service.d.ts +0 -21
- package/driver/in-memory/models/db-customer.type.d.ts +0 -8
- package/driver/in-memory/public_api.d.ts +0 -2
- package/driver/interfaces/auth-service.interface.d.ts +0 -8
- package/driver/interfaces/login-service.interface.d.ts +0 -15
- package/driver/interfaces/public_api.d.ts +0 -4
- package/driver/interfaces/register-service.interface.d.ts +0 -18
- package/driver/interfaces/reset-password-service.interface.d.ts +0 -17
- package/driver/magento/apollo-bearer-token-link-generator.d.ts +0 -16
- package/driver/magento/auth-driver.module.d.ts +0 -9
- package/driver/magento/auth.service.d.ts +0 -14
- package/driver/magento/errors/codes.d.ts +0 -5
- package/driver/magento/errors/map.d.ts +0 -2
- package/driver/magento/errors/transform.d.ts +0 -1
- package/driver/magento/login.service.d.ts +0 -18
- package/driver/magento/models/public_api.d.ts +0 -4
- package/driver/magento/models/response/auth.d.ts +0 -3
- package/driver/magento/models/response/register.type.d.ts +0 -7
- package/driver/magento/models/response/reset-password.type.d.ts +0 -3
- package/driver/magento/models/response/send-reset-email.type.d.ts +0 -3
- package/driver/magento/public_api.d.ts +0 -8
- package/driver/magento/queries/check-token.d.ts +0 -1
- package/driver/magento/queries/create-customer.d.ts +0 -1
- package/driver/magento/queries/generate-token.d.ts +0 -1
- package/driver/magento/queries/public_api.d.ts +0 -7
- package/driver/magento/queries/reset-password.d.ts +0 -1
- package/driver/magento/queries/responses/check-token-response.d.ts +0 -5
- package/driver/magento/queries/responses/generate-token-response.d.ts +0 -4
- package/driver/magento/queries/responses/public_api.d.ts +0 -3
- package/driver/magento/queries/responses/revoke-customer-token-response.d.ts +0 -5
- package/driver/magento/queries/revoke-customer-token.d.ts +0 -1
- package/driver/magento/queries/send-reset-email.d.ts +0 -1
- package/driver/magento/register.service.d.ts +0 -18
- package/driver/magento/reset-password.service.d.ts +0 -19
- package/driver/magento/transforms/auth-transformer.service.d.ts +0 -16
- package/driver/magento/validators/check-token.d.ts +0 -3
- package/driver/magento/validators/generate-token.d.ts +0 -3
- package/driver/magento/validators/public_api.d.ts +0 -5
- package/driver/magento/validators/reset-password.d.ts +0 -3
- package/driver/magento/validators/revoke-token.d.ts +0 -3
- package/driver/magento/validators/send-reset-email.d.ts +0 -3
- package/driver/public_api.d.ts +0 -4
- package/driver/services/auth-check.service.d.ts +0 -17
- package/driver/services/public_api.d.ts +0 -1
- package/driver/testing/drivers/auth/auth.service.d.ts +0 -11
- package/driver/testing/drivers/auth-driver.module.d.ts +0 -9
- package/driver/testing/drivers/login/login.service.d.ts +0 -16
- package/driver/testing/drivers/public_api.d.ts +0 -4
- package/driver/testing/drivers/register/register.service.d.ts +0 -16
- package/driver/testing/drivers/reset-password/service.d.ts +0 -17
- package/driver/testing/public_api.d.ts +0 -1
- package/errors/codes.enum.d.ts +0 -3
- package/errors/map.d.ts +0 -7
- package/errors/missing-token.d.ts +0 -10
- package/errors/public_api.d.ts +0 -3
- package/models/account-registration.d.ts +0 -15
- package/models/auth-token.d.ts +0 -3
- package/models/login-info.d.ts +0 -4
- package/models/public_api.d.ts +0 -4
- package/models/reset-password-info.type.d.ts +0 -14
- package/public_api.d.ts +0 -3
- package/routing/config/default.d.ts +0 -2
- package/routing/config/interface.d.ts +0 -29
- package/routing/config/public_api.d.ts +0 -3
- package/routing/config/token.d.ts +0 -2
- package/routing/effects/redirect.effects.d.ts +0 -18
- package/routing/guards/guest-only-guard-redirect.token.d.ts +0 -1
- package/routing/guards/guest-only.guard.d.ts +0 -20
- package/routing/guards/member-only-guard-redirect.token.d.ts +0 -1
- package/routing/guards/member-only.guard.d.ts +0 -20
- package/routing/guards/public_api.d.ts +0 -5
- package/routing/guards/reset-password.guard.d.ts +0 -13
- package/routing/helpers/public_api.d.ts +0 -1
- package/routing/helpers/redirect-unauthenticated-hook-factory.d.ts +0 -4
- package/routing/module.d.ts +0 -9
- package/routing/public_api.d.ts +0 -5
- package/routing/redirect.module.d.ts +0 -7
- package/state/actions/auth.actions.d.ts +0 -56
- package/state/actions/login.actions.d.ts +0 -64
- package/state/actions/public_api.d.ts +0 -4
- package/state/actions/register.actions.d.ts +0 -40
- package/state/actions/reset-password.actions.d.ts +0 -74
- package/state/auth-state.module.d.ts +0 -11
- package/state/config/default.d.ts +0 -2
- package/state/config/public_api.d.ts +0 -3
- package/state/config/token.d.ts +0 -2
- package/state/config/type.d.ts +0 -7
- package/state/effects/auth.effects.d.ts +0 -28
- package/state/effects/login.effects.d.ts +0 -17
- package/state/effects/register.effects.d.ts +0 -17
- package/state/effects/reset-password.effects.d.ts +0 -18
- package/state/facades/auth/facade.d.ts +0 -19
- package/state/facades/auth/facade.interface.d.ts +0 -11
- package/state/facades/auth/public_api.d.ts +0 -2
- package/state/facades/login/facade.d.ts +0 -18
- package/state/facades/login/facade.interface.d.ts +0 -7
- package/state/facades/login/public_api.d.ts +0 -2
- package/state/facades/public_api.d.ts +0 -4
- package/state/facades/register/facade.d.ts +0 -18
- package/state/facades/register/facade.interface.d.ts +0 -7
- package/state/facades/register/public_api.d.ts +0 -2
- package/state/facades/reset-password/facade.d.ts +0 -20
- package/state/facades/reset-password/facade.interface.d.ts +0 -9
- package/state/facades/reset-password/public_api.d.ts +0 -2
- package/state/injection-tokens/error-matcher.token.d.ts +0 -2
- package/state/injection-tokens/public_api.d.ts +0 -2
- package/state/injection-tokens/unauthenticated/hook.token.d.ts +0 -2
- package/state/injection-tokens/unauthenticated/hook.type.d.ts +0 -9
- package/state/injection-tokens/unauthenticated/hooks.token.d.ts +0 -2
- package/state/injection-tokens/unauthenticated/public_api.d.ts +0 -2
- package/state/public_api.d.ts +0 -7
- package/state/reducers/auth/auth-initial-state.d.ts +0 -2
- package/state/reducers/auth/auth-reducer-state.interface.d.ts +0 -4
- package/state/reducers/auth/auth.reducer.d.ts +0 -3
- package/state/reducers/auth/public_api.d.ts +0 -3
- package/state/reducers/auth-feature-state.interface.d.ts +0 -14
- package/state/reducers/auth-reducers.d.ts +0 -3
- package/state/reducers/auth-store-feature-key.d.ts +0 -1
- package/state/reducers/login/login-initial-state.d.ts +0 -2
- package/state/reducers/login/login-reducer-state.interface.d.ts +0 -2
- package/state/reducers/login/login.reducer.d.ts +0 -4
- package/state/reducers/login/public_api.d.ts +0 -3
- package/state/reducers/public_api.d.ts +0 -8
- package/state/reducers/register/public_api.d.ts +0 -3
- package/state/reducers/register/register-initial-state.d.ts +0 -2
- package/state/reducers/register/register-reducer-state.interface.d.ts +0 -2
- package/state/reducers/register/register.reducer.d.ts +0 -4
- package/state/reducers/reset-password/initial-state.d.ts +0 -2
- package/state/reducers/reset-password/public_api.d.ts +0 -3
- package/state/reducers/reset-password/reducer.d.ts +0 -4
- package/state/reducers/reset-password/state.interface.d.ts +0 -5
- package/state/reducers/token/extra.token.d.ts +0 -3
- package/state/reducers/token/public_api.d.ts +0 -1
- package/state/reducers/token/reducers.token.d.ts +0 -3
- package/state/selectors/auth/auth.selector.d.ts +0 -8
- package/state/selectors/auth-all.selector.d.ts +0 -10
- package/state/selectors/auth-feature.selector.d.ts +0 -6
- package/state/selectors/login/login.selector.d.ts +0 -7
- package/state/selectors/public_api.d.ts +0 -5
- package/state/selectors/register/register.selector.d.ts +0 -7
- package/state/selectors/reset-password/selector.d.ts +0 -9
- package/state/testing/auth-testing.module.d.ts +0 -6
- package/state/testing/mock-auth-facade.d.ts +0 -16
- package/state/testing/mock-login-facade.d.ts +0 -15
- package/state/testing/mock-register-facade.d.ts +0 -15
- package/state/testing/mock-reset-password-facade.d.ts +0 -16
- package/state/testing/public_api.d.ts +0 -5
- package/storage/auth-storage.service.d.ts +0 -12
- package/testing/factories/account-registration.factory.d.ts +0 -15
- package/testing/factories/auth-token.factory.d.ts +0 -11
- package/testing/factories/public_api.d.ts +0 -3
- package/testing/factories/reset-password-info.factory.d.ts +0 -13
- package/testing/public_api.d.ts +0 -1
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { DaffAuthResetPasswordInfo } from '@daffodil/auth';
|
|
3
|
-
import { DaffResetPasswordServiceInterface } from '@daffodil/auth/driver';
|
|
4
|
-
import { DaffAuthTokenFactory } from '@daffodil/auth/testing';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* @inheritdoc
|
|
8
|
-
*/
|
|
9
|
-
export declare class DaffTestingResetPasswordService implements DaffResetPasswordServiceInterface {
|
|
10
|
-
private authTokenFactory;
|
|
11
|
-
constructor(authTokenFactory: DaffAuthTokenFactory);
|
|
12
|
-
resetPassword(): Observable<string>;
|
|
13
|
-
resetPasswordOnly(info: DaffAuthResetPasswordInfo): Observable<void>;
|
|
14
|
-
sendResetEmail(): Observable<void>;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingResetPasswordService, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingResetPasswordService>;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './drivers/public_api';
|
package/errors/codes.enum.d.ts
DELETED
package/errors/map.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DaffError, DaffInheritableError } from '@daffodil/core';
|
|
2
|
-
/**
|
|
3
|
-
* An error thrown when an authenticated action was initiated
|
|
4
|
-
* but an auth token was not present.
|
|
5
|
-
*/
|
|
6
|
-
export declare class DaffAuthMissingTokenError extends DaffInheritableError implements DaffError {
|
|
7
|
-
message: string;
|
|
8
|
-
readonly code: string;
|
|
9
|
-
constructor(message: string);
|
|
10
|
-
}
|
package/errors/public_api.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DaffLoginInfo } from './login-info';
|
|
2
|
-
export interface DaffAccountRegistration extends DaffLoginInfo {
|
|
3
|
-
/**
|
|
4
|
-
* Whether the customer be subscribed to the newsletter upon registration.
|
|
5
|
-
*/
|
|
6
|
-
subscribe?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* The customer's first name.
|
|
9
|
-
*/
|
|
10
|
-
firstName?: string;
|
|
11
|
-
/**
|
|
12
|
-
* The customer's last name.
|
|
13
|
-
*/
|
|
14
|
-
lastName?: string;
|
|
15
|
-
}
|
package/models/auth-token.d.ts
DELETED
package/models/login-info.d.ts
DELETED
package/models/public_api.d.ts
DELETED
package/public_api.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An interface for providing `@daffodil/auth/routing` with necessary config values.
|
|
3
|
-
*/
|
|
4
|
-
export interface DaffAuthRoutingConfig {
|
|
5
|
-
/**
|
|
6
|
-
* The name of the query param to which the reset password token will be set.
|
|
7
|
-
*/
|
|
8
|
-
resetPasswordTokenParam: string;
|
|
9
|
-
/**
|
|
10
|
-
* The name of the query param from which the redirect URL will be fetched.
|
|
11
|
-
* Defaults to `redirect`.
|
|
12
|
-
*/
|
|
13
|
-
redirectUrlParam: string;
|
|
14
|
-
/**
|
|
15
|
-
* The path to which the user will be redirected when they are logged in and the auth token is stored.
|
|
16
|
-
* Defaults to `'/'`.
|
|
17
|
-
*/
|
|
18
|
-
authCompleteRedirectPath: string;
|
|
19
|
-
/**
|
|
20
|
-
* The path to which the user will be redirected when they are logged out.
|
|
21
|
-
* Defaults to `'/'`.
|
|
22
|
-
*/
|
|
23
|
-
logoutRedirectPath: string;
|
|
24
|
-
/**
|
|
25
|
-
* The path to which the user will be redirected when their auth token is present but invalid.
|
|
26
|
-
* Defaults to `'/'`.
|
|
27
|
-
*/
|
|
28
|
-
tokenExpirationRedirectPath: string;
|
|
29
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { DaffAuthRoutingConfig } from './interface';
|
|
2
|
-
export declare const DAFF_AUTH_ROUTING_CONFIG: import("@angular/core").InjectionToken<DaffAuthRoutingConfig>, provideDaffAuthRoutingConfig: <R extends DaffAuthRoutingConfig = DaffAuthRoutingConfig>(config: Partial<R> | import("@angular/core").InjectionToken<Partial<R>>) => import("@angular/core").FactoryProvider;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
|
-
import { Actions } from '@ngrx/effects';
|
|
3
|
-
import { DaffAuthActions, DaffAuthLoginActions, DaffAuthRegisterActions, DaffAuthResetPasswordActions } from '@daffodil/auth/state';
|
|
4
|
-
import { DaffAuthRoutingConfig } from '../config/public_api';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Redirects the user to certain pages based on certain auth actions.
|
|
8
|
-
*/
|
|
9
|
-
export declare class DaffAuthRedirectEffects {
|
|
10
|
-
private actions$;
|
|
11
|
-
private router;
|
|
12
|
-
private route;
|
|
13
|
-
private config;
|
|
14
|
-
constructor(actions$: Actions<DaffAuthLoginActions | DaffAuthActions | DaffAuthRegisterActions | DaffAuthResetPasswordActions>, router: Router, route: ActivatedRoute, config: DaffAuthRoutingConfig);
|
|
15
|
-
redirectAfterLoginOrRegister$: import("rxjs").Observable<never> & import("@ngrx/effects").CreateEffectMetadata;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthRedirectEffects, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthRedirectEffects>;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DaffAuthGuestOnlyGuardRedirectUrl: import("@angular/core").InjectionToken<string>, provideDaffAuthGuestOnlyGuardRedirectUrl: <R extends string = string>(value: R) => import("@angular/core").ValueProvider;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Router } from '@angular/router';
|
|
2
|
-
import { Store } from '@ngrx/store';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { DaffAuthStorageService } from '@daffodil/auth';
|
|
5
|
-
import { DaffAuthDriverTokenCheck } from '@daffodil/auth/driver';
|
|
6
|
-
import { ErrorTransformer } from '@daffodil/core/state';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class GuestOnlyGuard {
|
|
9
|
-
private tokenCheck;
|
|
10
|
-
private storage;
|
|
11
|
-
private router;
|
|
12
|
-
private store;
|
|
13
|
-
private errorMatcher;
|
|
14
|
-
private redirectUrl;
|
|
15
|
-
constructor(tokenCheck: DaffAuthDriverTokenCheck, storage: DaffAuthStorageService, router: Router, store: Store, errorMatcher: ErrorTransformer, redirectUrl: string);
|
|
16
|
-
canActivate(): Observable<boolean>;
|
|
17
|
-
private isUnauthenticated;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GuestOnlyGuard, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GuestOnlyGuard>;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DaffAuthMemberOnlyGuardRedirectUrl: import("@angular/core").InjectionToken<string>, provideDaffAuthMemberOnlyGuardRedirectUrl: <R extends string = string>(value: R) => import("@angular/core").ValueProvider;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Router } from '@angular/router';
|
|
2
|
-
import { Store } from '@ngrx/store';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { DaffAuthStorageService } from '@daffodil/auth';
|
|
5
|
-
import { DaffAuthDriverTokenCheck } from '@daffodil/auth/driver';
|
|
6
|
-
import { ErrorTransformer } from '@daffodil/core/state';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class MemberOnlyGuard {
|
|
9
|
-
private tokenCheck;
|
|
10
|
-
private storage;
|
|
11
|
-
private router;
|
|
12
|
-
private store;
|
|
13
|
-
private errorMatcher;
|
|
14
|
-
private redirectUrl;
|
|
15
|
-
constructor(tokenCheck: DaffAuthDriverTokenCheck, storage: DaffAuthStorageService, router: Router, store: Store, errorMatcher: ErrorTransformer, redirectUrl: string);
|
|
16
|
-
canActivate(): Observable<boolean>;
|
|
17
|
-
private isAuthenticated;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MemberOnlyGuard, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MemberOnlyGuard>;
|
|
20
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { MemberOnlyGuard } from './member-only.guard';
|
|
2
|
-
export { GuestOnlyGuard } from './guest-only.guard';
|
|
3
|
-
export { DaffAuthResetPasswordGuard } from './reset-password.guard';
|
|
4
|
-
export { DaffAuthGuestOnlyGuardRedirectUrl } from './guest-only-guard-redirect.token';
|
|
5
|
-
export { DaffAuthMemberOnlyGuardRedirectUrl } from './member-only-guard-redirect.token';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { DaffAuthFacade } from '@daffodil/auth/state';
|
|
4
|
-
import { DaffAuthRoutingConfig } from '../config/public_api';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class DaffAuthResetPasswordGuard {
|
|
7
|
-
private facade;
|
|
8
|
-
private config;
|
|
9
|
-
constructor(facade: DaffAuthFacade, config: DaffAuthRoutingConfig);
|
|
10
|
-
canActivate(route: ActivatedRouteSnapshot): Observable<boolean>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthResetPasswordGuard, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthResetPasswordGuard>;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { daffAuthRoutingRedirectUnauthenticatedHookFactory } from './redirect-unauthenticated-hook-factory';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
|
-
import { DaffAuthUnauthenticatedHook } from '@daffodil/auth/state';
|
|
3
|
-
import { DaffAuthRoutingConfig } from '../config/public_api';
|
|
4
|
-
export declare function daffAuthRoutingRedirectUnauthenticatedHookFactory(router: Router, route: ActivatedRoute, config: DaffAuthRoutingConfig): DaffAuthUnauthenticatedHook;
|
package/routing/module.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { DaffAuthRoutingConfig } from './config/public_api';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DaffAuthRoutingModule {
|
|
5
|
-
static withConfig(config?: Partial<DaffAuthRoutingConfig>): ModuleWithProviders<DaffAuthRoutingModule>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthRoutingModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAuthRoutingModule, never, never, never>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffAuthRoutingModule>;
|
|
9
|
-
}
|
package/routing/public_api.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@ngrx/effects";
|
|
3
|
-
export declare class DaffAuthRoutingRedirectModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthRoutingRedirectModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAuthRoutingRedirectModule, never, [typeof i1.EffectsFeatureModule], never>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffAuthRoutingRedirectModule>;
|
|
7
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffStateError } from '@daffodil/core/state';
|
|
3
|
-
export declare enum DaffAuthActionTypes {
|
|
4
|
-
ResetToUnauthenticatedAction = "[@daffodil/auth] Reset To Unauthenticated Action",
|
|
5
|
-
AuthStorageFailureAction = "[@daffodil/auth] Auth Storage Failure Action",
|
|
6
|
-
AuthGuardLogoutAction = "[@daffodil/auth] Auth Guard Logout Action",
|
|
7
|
-
AuthServerSideAction = "[@daffodil/auth] Auth Server Side Action",
|
|
8
|
-
AuthCheckAction = "[@daffodil/auth] Auth Check Action",
|
|
9
|
-
AuthCheckSuccessAction = "[@daffodil/auth] Auth Check Success Action",
|
|
10
|
-
AuthCheckFailureAction = "[@daffodil/auth] Auth Check Failure Action"
|
|
11
|
-
}
|
|
12
|
-
export declare class DaffAuthResetToUnauthenticated implements Action {
|
|
13
|
-
reason: Action['type'];
|
|
14
|
-
readonly type = DaffAuthActionTypes.ResetToUnauthenticatedAction;
|
|
15
|
-
constructor(reason: Action['type']);
|
|
16
|
-
}
|
|
17
|
-
export declare class DaffAuthStorageFailure implements Action {
|
|
18
|
-
errorMessage: DaffStateError;
|
|
19
|
-
readonly type = DaffAuthActionTypes.AuthStorageFailureAction;
|
|
20
|
-
constructor(errorMessage: DaffStateError);
|
|
21
|
-
}
|
|
22
|
-
export declare class DaffAuthGuardLogout implements Action {
|
|
23
|
-
errorMessage: DaffStateError;
|
|
24
|
-
readonly type = DaffAuthActionTypes.AuthGuardLogoutAction;
|
|
25
|
-
constructor(errorMessage: DaffStateError);
|
|
26
|
-
}
|
|
27
|
-
export declare class DaffAuthServerSide implements Action {
|
|
28
|
-
errorMessage: DaffStateError;
|
|
29
|
-
readonly type = DaffAuthActionTypes.AuthServerSideAction;
|
|
30
|
-
constructor(errorMessage: DaffStateError);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* An action triggered to initialize an auth check request.
|
|
34
|
-
*/
|
|
35
|
-
export declare class DaffAuthCheck implements Action {
|
|
36
|
-
readonly type = DaffAuthActionTypes.AuthCheckAction;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* An action triggered upon a successful auth check.
|
|
40
|
-
*
|
|
41
|
-
* @param token - the customer access token
|
|
42
|
-
*/
|
|
43
|
-
export declare class DaffAuthCheckSuccess implements Action {
|
|
44
|
-
readonly type = DaffAuthActionTypes.AuthCheckSuccessAction;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* An action triggered upon a failed auth check request.
|
|
48
|
-
*
|
|
49
|
-
* @param errorMessage - an error message
|
|
50
|
-
*/
|
|
51
|
-
export declare class DaffAuthCheckFailure implements Action {
|
|
52
|
-
errorMessage: DaffStateError;
|
|
53
|
-
readonly type = DaffAuthActionTypes.AuthCheckFailureAction;
|
|
54
|
-
constructor(errorMessage: DaffStateError);
|
|
55
|
-
}
|
|
56
|
-
export type DaffAuthActions = DaffAuthResetToUnauthenticated | DaffAuthStorageFailure | DaffAuthGuardLogout | DaffAuthServerSide | DaffAuthCheck | DaffAuthCheckSuccess | DaffAuthCheckFailure;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffLoginInfo, DaffAuthToken } from '@daffodil/auth';
|
|
3
|
-
import { DaffStateError } from '@daffodil/core/state';
|
|
4
|
-
export declare enum DaffAuthLoginActionTypes {
|
|
5
|
-
LoginAction = "[@daffodil/auth] Login Action",
|
|
6
|
-
LoginSuccessAction = "[@daffodil/auth] Login Success Action",
|
|
7
|
-
LoginFailureAction = "[@daffodil/auth] Login Failure Action",
|
|
8
|
-
LogoutAction = "[@daffodil/auth] Logout Action",
|
|
9
|
-
LogoutSuccessAction = "[@daffodil/auth] Logout Success Action",
|
|
10
|
-
LogoutFailureAction = "[@daffodil/auth] Logout Failure Action"
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* An action triggered to initialize a auth login request.
|
|
14
|
-
*/
|
|
15
|
-
export declare class DaffAuthLogin<T extends DaffLoginInfo = DaffLoginInfo> implements Action {
|
|
16
|
-
loginInfo: T;
|
|
17
|
-
readonly type = DaffAuthLoginActionTypes.LoginAction;
|
|
18
|
-
constructor(loginInfo: T);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* An action triggered upon a successful auth login.
|
|
22
|
-
*
|
|
23
|
-
* @param token - the customer access token
|
|
24
|
-
*/
|
|
25
|
-
export declare class DaffAuthLoginSuccess<T extends DaffAuthToken = DaffAuthToken> implements Action {
|
|
26
|
-
auth: T;
|
|
27
|
-
readonly type = DaffAuthLoginActionTypes.LoginSuccessAction;
|
|
28
|
-
constructor(auth: T);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* An action triggered upon a failed auth login request.
|
|
32
|
-
*
|
|
33
|
-
* @param errorMessage - an error message
|
|
34
|
-
*/
|
|
35
|
-
export declare class DaffAuthLoginFailure implements Action {
|
|
36
|
-
errorMessage: DaffStateError;
|
|
37
|
-
readonly type = DaffAuthLoginActionTypes.LoginFailureAction;
|
|
38
|
-
constructor(errorMessage: DaffStateError);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* An action triggered to initialize a logout request.
|
|
42
|
-
*/
|
|
43
|
-
export declare class DaffAuthLogout implements Action {
|
|
44
|
-
readonly type = DaffAuthLoginActionTypes.LogoutAction;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* An action triggered upon a successful logout.
|
|
48
|
-
*
|
|
49
|
-
* @param token - the customer access token
|
|
50
|
-
*/
|
|
51
|
-
export declare class DaffAuthLogoutSuccess implements Action {
|
|
52
|
-
readonly type = DaffAuthLoginActionTypes.LogoutSuccessAction;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* An action triggered upon a failed logout request.
|
|
56
|
-
*
|
|
57
|
-
* @param errorMessage - an error message
|
|
58
|
-
*/
|
|
59
|
-
export declare class DaffAuthLogoutFailure implements Action {
|
|
60
|
-
errorMessage: DaffStateError;
|
|
61
|
-
readonly type = DaffAuthLoginActionTypes.LogoutFailureAction;
|
|
62
|
-
constructor(errorMessage: DaffStateError);
|
|
63
|
-
}
|
|
64
|
-
export type DaffAuthLoginActions<T extends DaffLoginInfo = DaffLoginInfo, U extends DaffAuthToken = DaffAuthToken> = DaffAuthLogin<T> | DaffAuthLoginSuccess<U> | DaffAuthLoginFailure | DaffAuthLogout | DaffAuthLogoutSuccess | DaffAuthLogoutFailure;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffAccountRegistration } from '@daffodil/auth';
|
|
3
|
-
import { DaffStateError } from '@daffodil/core/state';
|
|
4
|
-
export declare enum DaffAuthRegisterActionTypes {
|
|
5
|
-
RegisterAction = "[@daffodil/auth] Register Action",
|
|
6
|
-
RegisterSuccessAction = "[@daffodil/auth] Register Success Action",
|
|
7
|
-
RegisterFailureAction = "[@daffodil/auth] Register Failure Action"
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* An action triggered to initialize a auth register request.
|
|
11
|
-
*
|
|
12
|
-
* @param registration
|
|
13
|
-
*/
|
|
14
|
-
export declare class DaffAuthRegister<T extends DaffAccountRegistration = DaffAccountRegistration> implements Action {
|
|
15
|
-
registration: T;
|
|
16
|
-
autoLogin: boolean;
|
|
17
|
-
readonly type = DaffAuthRegisterActionTypes.RegisterAction;
|
|
18
|
-
constructor(registration: T, autoLogin?: boolean);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* An action triggered upon a successful auth register request.
|
|
22
|
-
*
|
|
23
|
-
* @param token - the customer access token
|
|
24
|
-
*/
|
|
25
|
-
export declare class DaffAuthRegisterSuccess implements Action {
|
|
26
|
-
token?: string;
|
|
27
|
-
readonly type = DaffAuthRegisterActionTypes.RegisterSuccessAction;
|
|
28
|
-
constructor(token?: string);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* An action triggered upon a failed auth request.
|
|
32
|
-
*
|
|
33
|
-
* @param errorMessage - an error message
|
|
34
|
-
*/
|
|
35
|
-
export declare class DaffAuthRegisterFailure implements Action {
|
|
36
|
-
errorMessage: DaffStateError;
|
|
37
|
-
readonly type = DaffAuthRegisterActionTypes.RegisterFailureAction;
|
|
38
|
-
constructor(errorMessage: DaffStateError);
|
|
39
|
-
}
|
|
40
|
-
export type DaffAuthRegisterActions<T extends DaffAccountRegistration = DaffAccountRegistration> = DaffAuthRegister<T> | DaffAuthRegisterSuccess | DaffAuthRegisterFailure;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffAuthResetPasswordInfo } from '@daffodil/auth';
|
|
3
|
-
import { DaffStateError } from '@daffodil/core/state';
|
|
4
|
-
export declare enum DaffAuthResetPasswordActionTypes {
|
|
5
|
-
SendResetEmailAction = "[@daffodil/auth] Send Reset Email Action",
|
|
6
|
-
SendResetEmailSuccessAction = "[@daffodil/auth] Send Reset Email Success Action",
|
|
7
|
-
SendResetEmailFailureAction = "[@daffodil/auth] Send Reset Email Failure Action",
|
|
8
|
-
ResetPasswordAction = "[@daffodil/auth] Reset Password Action",
|
|
9
|
-
ResetPasswordSuccessAction = "[@daffodil/auth] Reset Password Success Action",
|
|
10
|
-
ResetPasswordFailureAction = "[@daffodil/auth] Reset Password Failure Action",
|
|
11
|
-
ResetPasswordLandingAction = "[@daffodil/auth] Reset Password Landing Action"
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* An action triggered to send the specified customer an email to reset their password.
|
|
15
|
-
*/
|
|
16
|
-
export declare class DaffSendResetEmail implements Action {
|
|
17
|
-
email: string;
|
|
18
|
-
readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailAction;
|
|
19
|
-
constructor(email: string);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* An action triggered upon a successfully sent reset password email.
|
|
23
|
-
*/
|
|
24
|
-
export declare class DaffSendResetEmailSuccess implements Action {
|
|
25
|
-
readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailSuccessAction;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* An action triggered upon a failure to send the reset password email.
|
|
29
|
-
*
|
|
30
|
-
* @param errorMessage - an error message
|
|
31
|
-
*/
|
|
32
|
-
export declare class DaffSendResetEmailFailure implements Action {
|
|
33
|
-
errorMessage: DaffStateError;
|
|
34
|
-
readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailFailureAction;
|
|
35
|
-
constructor(errorMessage: DaffStateError);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* An action triggered to initialize a logout request.
|
|
39
|
-
*/
|
|
40
|
-
export declare class DaffResetPassword<T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo> implements Action {
|
|
41
|
-
info: T;
|
|
42
|
-
autoLogin: boolean;
|
|
43
|
-
readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordAction;
|
|
44
|
-
constructor(info: T, autoLogin?: boolean);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* An action triggered upon a successful logout.
|
|
48
|
-
*/
|
|
49
|
-
export declare class DaffResetPasswordSuccess implements Action {
|
|
50
|
-
token?: string;
|
|
51
|
-
readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction;
|
|
52
|
-
constructor(token?: string);
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* An action triggered upon a failed logout request.
|
|
56
|
-
*
|
|
57
|
-
* @param errorMessage - an error message
|
|
58
|
-
*/
|
|
59
|
-
export declare class DaffResetPasswordFailure implements Action {
|
|
60
|
-
errorMessage: DaffStateError;
|
|
61
|
-
readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordFailureAction;
|
|
62
|
-
constructor(errorMessage: DaffStateError);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* An action triggered upon the user navigating to the reset password page from the link in their email.
|
|
66
|
-
*
|
|
67
|
-
* @param token - The token with which the password can be reset
|
|
68
|
-
*/
|
|
69
|
-
export declare class DaffResetPasswordLanding implements Action {
|
|
70
|
-
token: DaffAuthResetPasswordInfo['token'];
|
|
71
|
-
readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordLandingAction;
|
|
72
|
-
constructor(token: DaffAuthResetPasswordInfo['token']);
|
|
73
|
-
}
|
|
74
|
-
export type DaffAuthResetPasswordActions<T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo> = DaffSendResetEmail | DaffSendResetEmailSuccess | DaffSendResetEmailFailure | DaffResetPassword<T> | DaffResetPasswordSuccess | DaffResetPasswordFailure | DaffResetPasswordLanding;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { DaffAuthStateConfig } from './config/public_api';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@ngrx/store";
|
|
5
|
-
import * as i2 from "@ngrx/effects";
|
|
6
|
-
export declare class DaffAuthStateModule {
|
|
7
|
-
static withConfig(config?: Partial<DaffAuthStateConfig>): ModuleWithProviders<DaffAuthStateModule>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthStateModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAuthStateModule, never, [typeof i1.StoreFeatureModule, typeof i2.EffectsFeatureModule], never>;
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffAuthStateModule>;
|
|
11
|
-
}
|
package/state/config/token.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { DaffAuthStateConfig } from './type';
|
|
2
|
-
export declare const DAFF_AUTH_STATE_CONFIG: import("@angular/core").InjectionToken<DaffAuthStateConfig>, provideDaffAuthStateConfig: <R extends DaffAuthStateConfig = DaffAuthStateConfig>(config: Partial<R> | import("@angular/core").InjectionToken<Partial<R>>) => import("@angular/core").FactoryProvider;
|
package/state/config/type.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { NgZone } from '@angular/core';
|
|
2
|
-
import { Actions } from '@ngrx/effects';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { DaffAuthStorageService } from '@daffodil/auth';
|
|
5
|
-
import { DaffAuthDriverTokenCheck } from '@daffodil/auth/driver';
|
|
6
|
-
import { ErrorTransformer } from '@daffodil/core/state';
|
|
7
|
-
import { DaffDriverHttpClientCacheServiceInterface } from '@daffodil/driver';
|
|
8
|
-
import { DaffAuthCheckSuccess, DaffAuthCheckFailure, DaffAuthCheck, DaffAuthStorageFailure, DaffAuthServerSide, DaffAuthActions, DaffAuthLoginActions, DaffAuthResetToUnauthenticated } from '../actions/public_api';
|
|
9
|
-
import { DaffAuthStateConfig } from '../config/public_api';
|
|
10
|
-
import { DaffAuthUnauthenticatedHook } from '../injection-tokens/public_api';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class DaffAuthEffects {
|
|
13
|
-
private actions$;
|
|
14
|
-
private tokenCheck;
|
|
15
|
-
private errorMatcher;
|
|
16
|
-
private storage;
|
|
17
|
-
private config;
|
|
18
|
-
private clientCache;
|
|
19
|
-
private unauthenticatedHook;
|
|
20
|
-
private zone;
|
|
21
|
-
constructor(actions$: Actions<DaffAuthActions | DaffAuthLoginActions>, tokenCheck: DaffAuthDriverTokenCheck, errorMatcher: ErrorTransformer, storage: DaffAuthStorageService, config: DaffAuthStateConfig, clientCache: DaffDriverHttpClientCacheServiceInterface, unauthenticatedHook: DaffAuthUnauthenticatedHook, zone: NgZone);
|
|
22
|
-
check$: Observable<DaffAuthCheckSuccess | DaffAuthCheckFailure> & import("@ngrx/effects").CreateEffectMetadata;
|
|
23
|
-
authCheckInterval$: Observable<DaffAuthStorageFailure | DaffAuthServerSide | DaffAuthCheck> & import("@ngrx/effects").CreateEffectMetadata;
|
|
24
|
-
resetToUnauthenticated$: Observable<DaffAuthResetToUnauthenticated> & import("@ngrx/effects").CreateEffectMetadata;
|
|
25
|
-
clearClientCache$: Observable<never> & import("@ngrx/effects").CreateEffectMetadata;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthEffects, never>;
|
|
27
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthEffects>;
|
|
28
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Actions } from '@ngrx/effects';
|
|
2
|
-
import { DaffLoginInfo, DaffAuthToken, DaffAuthStorageService } from '@daffodil/auth';
|
|
3
|
-
import { DaffLoginServiceInterface } from '@daffodil/auth/driver';
|
|
4
|
-
import { ErrorTransformer } from '@daffodil/core/state';
|
|
5
|
-
import { DaffAuthLoginSuccess, DaffAuthLoginFailure, DaffAuthLogoutSuccess, DaffAuthLogoutFailure, DaffAuthServerSide, DaffAuthLoginActions, DaffAuthStorageFailure } from '../actions/public_api';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DaffAuthLoginEffects<T extends DaffLoginInfo = DaffLoginInfo, U extends DaffAuthToken = DaffAuthToken> {
|
|
8
|
-
private actions$;
|
|
9
|
-
private loginDriver;
|
|
10
|
-
private errorMatcher;
|
|
11
|
-
private storage;
|
|
12
|
-
constructor(actions$: Actions<DaffAuthLoginActions<T, U>>, loginDriver: DaffLoginServiceInterface<T, U>, errorMatcher: ErrorTransformer, storage: DaffAuthStorageService);
|
|
13
|
-
login$: import("rxjs").Observable<DaffAuthServerSide | DaffAuthLoginFailure | DaffAuthLoginSuccess<U>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
14
|
-
logout$: import("rxjs").Observable<DaffAuthStorageFailure | DaffAuthServerSide | DaffAuthLogoutSuccess | DaffAuthLogoutFailure> & import("@ngrx/effects").CreateEffectMetadata;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthLoginEffects<any, any>, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthLoginEffects<any, any>>;
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Actions } from '@ngrx/effects';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { DaffAccountRegistration, DaffAuthStorageService } from '@daffodil/auth';
|
|
4
|
-
import { DaffRegisterServiceInterface } from '@daffodil/auth/driver';
|
|
5
|
-
import { ErrorTransformer } from '@daffodil/core/state';
|
|
6
|
-
import { DaffAuthRegisterActions } from '../actions/public_api';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class DaffAuthRegisterEffects<T extends DaffAccountRegistration = DaffAccountRegistration> {
|
|
9
|
-
private actions$;
|
|
10
|
-
private registerDriver;
|
|
11
|
-
private errorMatcher;
|
|
12
|
-
private storage;
|
|
13
|
-
constructor(actions$: Actions<DaffAuthRegisterActions<T>>, registerDriver: DaffRegisterServiceInterface<T>, errorMatcher: ErrorTransformer, storage: DaffAuthStorageService);
|
|
14
|
-
register$: Observable<any>;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthRegisterEffects<any>, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthRegisterEffects<any>>;
|
|
17
|
-
}
|