UNPKG

@nestjs-mod/webhook-afat

Version:

Webhook UI components and tools for AFAT (Angular, Formly, Antd, Transloco) and rest-sdk for work with backend of this module from Angular appliaction

17 lines (16 loc) 819 B
import { ActivatedRouteSnapshot, CanActivate } from '@angular/router'; import { WebhookAuthService } from './webhook-auth.service'; import { WebhookRoleInterface } from '../generated/rest-sdk'; import * as i0 from "@angular/core"; export declare const WEBHOOK_GUARD_DATA_ROUTE_KEY = "webhookGuardData"; export declare class WebhookGuardData { roles?: WebhookRoleInterface[]; constructor(options?: WebhookGuardData); } export declare class WebhookGuardService implements CanActivate { private readonly webhookAuthService; constructor(webhookAuthService: WebhookAuthService); canActivate(route: ActivatedRouteSnapshot): import("rxjs").Observable<boolean>; static ɵfac: i0.ɵɵFactoryDeclaration<WebhookGuardService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<WebhookGuardService>; }