UNPKG

@spartacus/checkout

Version:

Checkout feature library for Spartacus

23 lines (22 loc) 1.5 kB
import { CanActivate, Router, UrlTree } from '@angular/router'; import { ActiveCartService, AuthRedirectService, AuthService, GlobalMessageService, SemanticPathService } from '@spartacus/core'; import { User, UserAccountFacade } from '@spartacus/user/account/root'; import { Observable } from 'rxjs'; import { CheckoutConfigService } from '../services/checkout-config.service'; import * as i0 from "@angular/core"; export declare class CheckoutAuthGuard implements CanActivate { protected authService: AuthService; protected authRedirectService: AuthRedirectService; protected checkoutConfigService: CheckoutConfigService; protected activeCartService: ActiveCartService; protected semanticPathService: SemanticPathService; protected router: Router; protected userService: UserAccountFacade; protected globalMessageService: GlobalMessageService; constructor(authService: AuthService, authRedirectService: AuthRedirectService, checkoutConfigService: CheckoutConfigService, activeCartService: ActiveCartService, semanticPathService: SemanticPathService, router: Router, userService: UserAccountFacade, globalMessageService: GlobalMessageService); canActivate(): Observable<boolean | UrlTree>; protected handleAnonymousUser(cartUser?: User): boolean | UrlTree; protected handleUserRole(user: User): boolean | UrlTree; static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutAuthGuard, never>; static ɵprov: i0.ɵɵInjectableDeclaration<CheckoutAuthGuard>; }