import { Action } from "@ngrx/store"; import { TOidcProviderType } from "../../models/security/authentication.interface"; import { IWorkflowAuthData } from "@retail-data-factory/rdf-angular-types-api"; export declare enum EAuthenticationActions { SetToken = "[Authentication] Set Access Token", DestroyToken = "[Authentication] Destroy Access Token", SetTokenSuccess = "[Authentication] Set Access Token Success", Authenticate = "[Authentication] Authenticate by login/password", AuthenticateByAccessToken = "[Authentication] Authenticate by OpenAm AccessToken", AuthenticateByOidc = "[Authentication] Authenticate by oidc (google, facebook etc)", AuthenticationSuccess = "[Authentication] Authentication Success", AuthenticationFailure = "[Authentication] Authentication Failure", Validate = "[Authentication] Validate Token", ValidationSuccess = "[Authentication] Validation Token Success", ValidationFailure = "[Authentication] Validation Token Failure", Logout = "[Authentication] Logout", LogoutSuccess = "[Authentication] Logout Success", LogoutFailure = "[Authentication] Logout Failure", ClearAuthStore = "[Authentication] Clear Auth Store", ClearAll = "[System] Clear All Stores", StartPostAuthenticationProcess = "[Authentication] StartPostAuthenticationProcess", ProgressPostAuthenticationProcess = "[Authentication] StartPostAuthenticationProcess", FinishPostAuthenticationProcess = "[Authentication] StartPostAuthenticationProcess", AuthenticateWorkflow = "[Authentication] Authenticate in workflow subsystem", AuthenticationWorkflowSuccess = "[Authentication] Authentication in workflow subsystem success", AuthenticationWorkflowFailure = "[Authentication] Authentication in workflow subsystem failure", ClearLoginPassword = "[Authentication] Clear login and password in store" } export declare class SetToken implements Action { payload: string; readonly type = EAuthenticationActions.SetToken; constructor(payload: string); } export declare class SetTokenSuccess implements Action { readonly type = EAuthenticationActions.SetTokenSuccess; } export declare class DestroyToken implements Action { readonly type = EAuthenticationActions.DestroyToken; } export declare class Authenticate implements Action { payload: { login: string; password: string; }; readonly type = EAuthenticationActions.Authenticate; constructor(payload: { login: string; password: string; }); } export declare class AuthenticateByAccessToken implements Action { payload: { accessToken: string; workflowToken: string; }; readonly type = EAuthenticationActions.AuthenticateByAccessToken; constructor(payload: { accessToken: string; workflowToken: string; }); } export declare class AuthenticateByOidc implements Action { payload: { oidcToken: string; oidcProviderType: TOidcProviderType; }; readonly type = EAuthenticationActions.AuthenticateByOidc; constructor(payload: { oidcToken: string; oidcProviderType: TOidcProviderType; }); } export declare class AuthenticationSuccess implements Action { payload: { accessToken: string; workflowToken: string; }; readonly type = EAuthenticationActions.AuthenticationSuccess; constructor(payload: { accessToken: string; workflowToken: string; }); } export declare class AuthenticationFailure implements Action { readonly type = EAuthenticationActions.AuthenticationFailure; } export declare class Validate implements Action { payload: { accessToken: string; }; readonly type = EAuthenticationActions.Validate; constructor(payload: { accessToken: string; }); } export declare class ValidationSuccess implements Action { readonly type = EAuthenticationActions.ValidationSuccess; } export declare class ValidationFailure implements Action { readonly type = EAuthenticationActions.ValidationFailure; } export declare class Logout implements Action { readonly type = EAuthenticationActions.Logout; } export declare class LogoutSuccess implements Action { readonly type = EAuthenticationActions.LogoutSuccess; } export declare class LogoutFailure implements Action { readonly type = EAuthenticationActions.LogoutFailure; } export declare class ClearAuthStore implements Action { readonly type = EAuthenticationActions.ClearAuthStore; } export declare class ClearAll implements Action { readonly type = EAuthenticationActions.ClearAll; } export declare class StartPostAuthenticationProcess implements Action { payload: { stages: number; }; readonly type = EAuthenticationActions.StartPostAuthenticationProcess; constructor(payload: { stages: number; }); } export declare class ProgressPostAuthenticationProcess implements Action { readonly type = EAuthenticationActions.StartPostAuthenticationProcess; } export declare class FinishPostAuthenticationProcess implements Action { readonly type = EAuthenticationActions.StartPostAuthenticationProcess; } export declare class AuthenticateWorkflow implements Action { readonly type = EAuthenticationActions.AuthenticateWorkflow; } export declare class AuthenticationWorkflowSuccess implements Action { payload: IWorkflowAuthData; readonly type = EAuthenticationActions.AuthenticationWorkflowSuccess; constructor(payload: IWorkflowAuthData); } export declare class AuthenticationWorkflowFailure implements Action { readonly type = EAuthenticationActions.AuthenticationWorkflowFailure; } export declare class ClearLoginPassword implements Action { readonly type = EAuthenticationActions.ClearLoginPassword; } export declare type AuthenticationActions = SetToken | SetTokenSuccess | DestroyToken | Authenticate | AuthenticateByAccessToken | AuthenticateByOidc | AuthenticationSuccess | AuthenticationFailure | Validate | ValidationSuccess | ValidationFailure | Logout | LogoutSuccess | LogoutFailure | ClearAuthStore | ClearAll | ClearLoginPassword | StartPostAuthenticationProcess | ProgressPostAuthenticationProcess | FinishPostAuthenticationProcess | AuthenticateWorkflow | AuthenticationWorkflowSuccess | AuthenticationWorkflowFailure;