UNPKG

@linid-dm/directory-manager-client-core

Version:

Core package by providing a set of angular components for the Directory Manager app.

67 lines (66 loc) 2.96 kB
import { StateContext } from '@ngxs/store'; import { ICurrentUserConfig } from '../../interfaces/configs.interface'; import * as User from './user.actions'; import * as i0 from "@angular/core"; export interface UserStateModel { id: string; userName: string; displayName: string; photo: string; canAssignOrMove: string[]; isConnected: boolean; isDisconnected: boolean; isConnecting: boolean; isDisconnecting: boolean; connectionFailed: boolean; codeConnectionError: number; connectionErrorMessage: string; disconnectionFailed: boolean; codeDisconnectionError: number; disconnectionErrorMessage: string; } export declare function initUserStateDefaultValues(): { id: any; userName: any; displayName: any; photo: any; canAssignOrMove: any[]; isConnected: boolean; isDisconnected: boolean; isConnecting: boolean; isDisconnecting: boolean; connectionFailed: boolean; codeConnectionError: any; connectionErrorMessage: any; disconnectionFailed: boolean; codeDisconnectionError: any; disconnectionErrorMessage: any; }; export declare class UserState { static getUser(state: UserStateModel): UserStateModel; static getCurrentUserDetail(state: UserStateModel): ICurrentUserConfig; static getId(state: UserStateModel): string; static getDisplayName(state: UserStateModel): string; static getPhoto(state: UserStateModel): string; static getCanAssignOrMoveAuthorizedTypes(state: UserStateModel): string[]; static getIsConnected(state: UserStateModel): boolean; static getIsDisconnected(state: UserStateModel): boolean; static getIsConnecting(state: UserStateModel): boolean; static getIsDisconnecting(state: UserStateModel): boolean; static getConnectionFailed(state: UserStateModel): boolean; static getCodeConnectionError(state: UserStateModel): number; static getConnectionErrorMessage(state: UserStateModel): boolean; static getDisconnectionFailed(state: UserStateModel): boolean; static getCodeDisconnectionError(state: UserStateModel): number; static getDisonnectionErrorMessage(state: UserStateModel): string; setCurrentUserConfig(ctx: StateContext<UserStateModel>, action: User.SetCurrentUserConfig): void; updateCurrentUserConfig(ctx: StateContext<UserStateModel>, action: User.UpdateCurrentUserConfig): void; connect(ctx: StateContext<UserStateModel>, action: User.Connect): void; connectError(ctx: StateContext<UserStateModel>, action: User.ConnectError): void; connectSuccess(ctx: StateContext<UserStateModel>): void; disconnect(ctx: StateContext<UserStateModel>): void; disconnectError(ctx: StateContext<UserStateModel>, action: User.ConnectError): void; disconnectSuccess(ctx: StateContext<UserStateModel>): void; static ɵfac: i0.ɵɵFactoryDeclaration<UserState, never>; static ɵprov: i0.ɵɵInjectableDeclaration<UserState>; }