UNPKG

@formio/angular

Version:

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.1.4.

148 lines (138 loc) 5.05 kB
import * as i0 from '@angular/core'; import { EventEmitter } from '@angular/core'; import * as i6 from '@formio/angular'; import { FormioAppConfig } from '@formio/angular'; import * as i7 from '@angular/router'; import { Routes } from '@angular/router'; import * as i5 from '@angular/common'; interface FormioAuthFormConfig { path?: string; form?: string; component?: any; } interface FormioAuthRouteConfig { auth?: any; login?: any; register?: any; resetpass?: any; } declare class FormioAuthConfig { component?: any; delayAuth?: any; login?: FormioAuthFormConfig; register?: FormioAuthFormConfig; resetpass?: FormioAuthFormConfig; oauth?: FormioOAuthConfig; static ɵfac: i0.ɵɵFactoryDeclaration<FormioAuthConfig, never>; static ɵprov: i0.ɵɵInjectableDeclaration<FormioAuthConfig>; } interface FormioOAuthConfig { type: FormioOauthType; options: FormioOktaConfig | FormioSamlConfig; } declare enum FormioOauthType { okta = "okta", saml = "saml" } interface FormioOktaConfig extends OktaConfig { formio?: any; } interface FormioSamlConfig { relay: string; } interface OktaConfig { url?: string; tokenManager?: OktaTokenManagerConfig; issuer?: string; clientId?: string; redirectUri?: string; postLogoutRedirectUri?: string; pkce?: boolean; authorizeUrl?: string; userinfoUrl?: string; tokenUrl?: string; ignoreSignature?: boolean; maxClockSkew?: number; scopes?: string[]; httpRequestClient?: Function; } interface OktaTokenManagerConfig { storage?: string | { getItem?: Function; setItem?: Function; }; secure?: boolean; autoRenew?: boolean; expireEarlySeconds?: number; storageKey?: string; } declare class FormioAuthService { appConfig: FormioAppConfig; config: FormioAuthConfig; user: any; authenticated: boolean; loginForm: string; onLogin: EventEmitter<object>; onLogout: EventEmitter<object>; registerForm: string; onRegister: EventEmitter<object>; onUser: EventEmitter<object>; onError: EventEmitter<any>; resetPassForm: string; onResetPass: EventEmitter<object>; ready: Promise<boolean>; readyResolve: any; readyReject: any; projectReady?: Promise<any>; accessReady?: Promise<any>; userReady?: Promise<any>; formAccess: any; submissionAccess: any; roles: any; is: any; constructor(appConfig: FormioAppConfig, config: FormioAuthConfig); onLoginSubmit(submission: object): void; onRegisterSubmit(submission: object): void; onResetPassSubmit(submission: object): void; init(): void; setUser(user: any): void; setUserRoles(): void; logoutError(): void; logout(): void; static ɵfac: i0.ɵɵFactoryDeclaration<FormioAuthService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<FormioAuthService>; } declare class FormioAuthComponent { static ɵfac: i0.ɵɵFactoryDeclaration<FormioAuthComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<FormioAuthComponent, "ng-component", never, {}, {}, never, never, false, never>; } declare class FormioAuthLoginComponent { service: FormioAuthService; renderOptions: any; constructor(service: FormioAuthService); static ɵfac: i0.ɵɵFactoryDeclaration<FormioAuthLoginComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<FormioAuthLoginComponent, "ng-component", never, {}, {}, never, never, false, never>; } declare class FormioAuthRegisterComponent { service: FormioAuthService; renderOptions: any; constructor(service: FormioAuthService); static ɵfac: i0.ɵɵFactoryDeclaration<FormioAuthRegisterComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<FormioAuthRegisterComponent, "ng-component", never, {}, {}, never, never, false, never>; } declare class FormioResetPassComponent { service: FormioAuthService; constructor(service: FormioAuthService); static ɵfac: i0.ɵɵFactoryDeclaration<FormioResetPassComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<FormioResetPassComponent, "ng-component", never, {}, {}, never, never, false, never>; } declare function FormioAuthRoutes(config?: FormioAuthRouteConfig): Routes; declare class FormioAuth { static forRoot(config?: FormioAuthRouteConfig): any; static forChild(config?: FormioAuthRouteConfig): any; static ɵfac: i0.ɵɵFactoryDeclaration<FormioAuth, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<FormioAuth, [typeof FormioAuthComponent, typeof FormioAuthLoginComponent, typeof FormioAuthRegisterComponent, typeof FormioResetPassComponent], [typeof i5.CommonModule, typeof i6.FormioModule, typeof i7.RouterModule], never>; static ɵinj: i0.ɵɵInjectorDeclaration<FormioAuth>; } export { FormioAuth, FormioAuthComponent, FormioAuthConfig, FormioAuthLoginComponent, FormioAuthRegisterComponent, FormioAuthRoutes, FormioAuthService, FormioResetPassComponent }; //# sourceMappingURL=index.d.ts.map