@verisoft/store 19.0.0-rc001 → 20.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,25 +0,0 @@
1
- import { Actions } from '@ngrx/effects';
2
- import { Store } from '@ngrx/store';
3
- import { BaseHttpService, Page, RequestParams } from '@verisoft/core';
4
- import { Observable } from 'rxjs';
5
- export interface CreateGetPageActionConfig<T> {
6
- service?: BaseHttpService<T>;
7
- fetchList?: (requestParams: RequestParams<any>) => Observable<Page<T>>;
8
- snackbar?: any;
9
- ngrxFeatureKey?: string;
10
- requireFilters?: boolean;
11
- }
12
- export declare function createGetPageTableEffect<T>(tableRepository: string, actions$: Actions, config: CreateGetPageActionConfig<T>): Observable<({
13
- error: any;
14
- } & import("@ngrx/store").Action<`${string} Data load error`>) | ({
15
- gPage: Page<unknown>;
16
- } & import("@ngrx/store").Action<`${string} Data load success`>)> & import("@ngrx/effects").CreateEffectMetadata;
17
- export declare function createRemoveRangeTableEffect<T>(tableRepository: string, ngrxFeatureKey: string, actions$: Actions, store$: Store<any>, config: CreateGetPageActionConfig<T>): Observable<({
18
- error: any;
19
- } & import("@ngrx/store").Action<`${string} Data load error`>) | ({
20
- page: number;
21
- size: number;
22
- id?: string | null;
23
- filter?: Partial<any> | undefined;
24
- sort?: import("@verisoft/core").Sort[];
25
- } & import("@ngrx/store").Action<`${string} Get page`>)> & import("@ngrx/effects").CreateEffectMetadata;
@@ -1,9 +0,0 @@
1
- import { Page, RequestParams } from "@verisoft/core";
2
- export interface TableState<T> {
3
- dataLoading: boolean;
4
- requestParams: RequestParams<T>;
5
- gPage?: Page<T>;
6
- error?: string | null;
7
- selectedItems?: T[];
8
- }
9
- export declare const INITIAL_TABLE_STATE: TableState<any>;
@@ -1,3 +0,0 @@
1
- import { ActionCreator, ReducerTypes } from '@ngrx/store';
2
- import { TableState } from './models';
3
- export declare function createTablePageReducers<T = any, TState extends TableState<T> = TableState<T>>(tableRepository: string, initialState?: TState, ...ons: ReducerTypes<TState, readonly ActionCreator[]>[]): import("@ngrx/store").ActionReducer<unknown extends TState ? any : TState, import("@ngrx/store").Action<string>>;