@linid-dm/directory-manager-client-core
Version:
Core package by providing a set of angular components for the Directory Manager app.
31 lines (30 loc) • 1.53 kB
TypeScript
import { StateContext, Store } from '@ngxs/store';
import { JsTable } from '../../helpers/jstable.helper';
import { IConfig } from '../../interfaces/configs.interface';
import { ConfigsService } from '../../services/configs.service';
import * as Configs from './configs.actions';
import * as i0 from "@angular/core";
export interface ConfigsStateModel extends JsTable<IConfig> {
isFetchingConfigs: boolean;
isFetchingConfigsError: boolean;
isFetchingConfigsSuccess: boolean;
}
export declare function initConfigStateDefaultValues(): ConfigsStateModel;
export declare class ConfigsState {
private _configService;
private _store$;
constructor(_configService: ConfigsService, _store$: Store);
static isFetchingConfigs(state: ConfigsStateModel): boolean;
static isFetchingConfigsSuccess(state: ConfigsStateModel): boolean;
static isFetchingConfigsError(state: ConfigsStateModel): boolean;
static getConfigsById(state: ConfigsStateModel): {
readonly [id: string]: IConfig;
};
static getConfigsAllIds(state: ConfigsStateModel): string[];
static getConfigsJsTable(state: ConfigsStateModel): JsTable<IConfig>;
fetchConfigs(ctx: StateContext<ConfigsStateModel>): any;
fetchConfigsSuccess(ctx: StateContext<ConfigsStateModel>, action: Configs.FetchConfigsSuccess): void;
fetchConfigsError(ctx: StateContext<ConfigsStateModel>): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigsState, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigsState>;
}