ntk-cms-api 18.3.424 → 18.3.425
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.
- package/esm2020/lib/models/entity/base/_export.mjs +7 -6
- package/esm2020/lib/models/entity/base/processInfoModel.mjs +17 -0
- package/esm2020/lib/reducers/_export.mjs +2 -2
- package/esm2020/lib/reducers/cmsStore.mjs +23 -24
- package/esm2020/lib/reducers/ntkCmsApiStore.interface.mjs +1 -1
- package/esm2020/lib/reducers/ntkCmsApiStore.service.mjs +7 -82
- package/esm2020/lib/reducers/reducer.factory.mjs +48 -2
- package/esm2020/lib/service/core-token/coreAuth.service.mjs +2 -2
- package/fesm2015/ntk-cms-api.mjs +115 -130
- package/fesm2015/ntk-cms-api.mjs.map +1 -1
- package/fesm2020/ntk-cms-api.mjs +115 -127
- package/fesm2020/ntk-cms-api.mjs.map +1 -1
- package/lib/models/entity/base/_export.d.ts +6 -5
- package/lib/models/entity/base/processInfoModel.d.ts +10 -0
- package/lib/reducers/_export.d.ts +1 -1
- package/lib/reducers/cmsStore.d.ts +9 -6
- package/lib/reducers/ntkCmsApiStore.interface.d.ts +5 -4
- package/lib/reducers/ntkCmsApiStore.service.d.ts +4 -35
- package/lib/reducers/reducer.factory.d.ts +31 -1
- package/package.json +1 -1
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
export * from './fieldInfo/dataFieldInfoModel';
|
|
2
|
-
export * from './fieldInfo/fieldInfoModel';
|
|
3
|
-
export * from './fieldInfo/fieldInputDataSourceModel';
|
|
4
|
-
export * from './fieldInfo/getPropertiesInfoModel';
|
|
5
1
|
export * from './accessModel';
|
|
6
2
|
export * from './baseEntity';
|
|
7
3
|
export * from './baseModuleEntity';
|
|
8
4
|
export * from './captchaModel';
|
|
9
|
-
export * from './infoEnumModel';
|
|
10
5
|
export * from './errorExceptionResult';
|
|
11
6
|
export * from './errorExceptionResultBase';
|
|
12
7
|
export * from './errorExceptionResultExportFile';
|
|
13
8
|
export * from './exportFileModel';
|
|
9
|
+
export * from './fieldInfo/dataFieldInfoModel';
|
|
10
|
+
export * from './fieldInfo/fieldInfoModel';
|
|
11
|
+
export * from './fieldInfo/fieldInputDataSourceModel';
|
|
12
|
+
export * from './fieldInfo/getPropertiesInfoModel';
|
|
14
13
|
export * from './filterDataModel';
|
|
15
14
|
export * from './filterModel';
|
|
16
15
|
export * from './formInfoModel';
|
|
16
|
+
export * from './infoEnumModel';
|
|
17
17
|
export * from './itemState';
|
|
18
18
|
export * from './PageModel';
|
|
19
|
+
export * from './processInfoModel';
|
|
19
20
|
export * from './searchModel';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
export declare class CmsStore<
|
|
2
|
+
export declare class CmsStore<TStateModel = any> {
|
|
3
|
+
private state;
|
|
4
|
+
private sub;
|
|
3
5
|
private stateSubject;
|
|
4
|
-
constructor(initialState:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
constructor(initialState: TStateModel);
|
|
7
|
+
getStateSnapshot(): TStateModel;
|
|
8
|
+
setState(partialState: Partial<TStateModel>): void;
|
|
9
|
+
getStateDirect(): Observable<TStateModel>;
|
|
10
|
+
getState<R>(mapFn: (value: TStateModel, index: number) => R): Observable<R>;
|
|
11
|
+
select<K extends keyof TStateModel>(key: K): Observable<TStateModel[K]>;
|
|
9
12
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ProcessInfoModel } from '../models/entity/base/processInfoModel';
|
|
1
2
|
import { TokenDeviceModel } from '../models/entity/core-token/tokenDeviceModel';
|
|
2
3
|
import { TokenInfoModel } from '../models/entity/core-token/tokenInfoModel';
|
|
3
4
|
export interface NtkCmsApiStoreInterface {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
tokenInfoStore: TokenInfoModel;
|
|
6
|
+
deviceTokenInfoStore: TokenDeviceModel;
|
|
7
|
+
isLoadingStore: boolean;
|
|
8
|
+
processInfoStore: Map<string, ProcessInfoModel>;
|
|
8
9
|
}
|
|
@@ -1,46 +1,15 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import {
|
|
3
|
-
import { TokenInfoModel } from '../models/entity/core-token/tokenInfoModel';
|
|
4
|
-
import { NtkCmsApiStoreInterface } from './ntkCmsApiStore.interface';
|
|
5
|
-
import { AppStore } from './reducer.factory';
|
|
2
|
+
import { Actions, AppStoreModel } from './reducer.factory';
|
|
6
3
|
import * as i0 from "@angular/core";
|
|
7
4
|
export declare class NtkCmsApiStoreService {
|
|
8
5
|
private state;
|
|
9
6
|
private sub;
|
|
10
7
|
private stateSubject;
|
|
11
8
|
constructor();
|
|
9
|
+
getStateSnapshot(): AppStoreModel;
|
|
12
10
|
setState(param: Actions): void;
|
|
13
|
-
getState<R>(mapFn: (value:
|
|
14
|
-
|
|
15
|
-
processStart(name: string): void;
|
|
16
|
-
processInRun(name: string): boolean;
|
|
17
|
-
processStop(name: string): void;
|
|
11
|
+
getState<R>(mapFn: (value: AppStoreModel, index: number) => R): Observable<R>;
|
|
12
|
+
getStateDirect(): Observable<AppStoreModel>;
|
|
18
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<NtkCmsApiStoreService, never>;
|
|
19
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<NtkCmsApiStoreService>;
|
|
20
15
|
}
|
|
21
|
-
export declare function stateReducer(state: NtkCmsApiStoreInterface, action: Actions): NtkCmsApiStoreInterface;
|
|
22
|
-
export interface ActionInterface {
|
|
23
|
-
readonly type: string;
|
|
24
|
-
payload?: any;
|
|
25
|
-
}
|
|
26
|
-
export declare const SET_LOADING_STATE = "SET_LOADING_STATE";
|
|
27
|
-
export declare const SET_TOKEN_INFO = "SET_TOKEN_INFO";
|
|
28
|
-
export declare const SET_DEVICE_TOKEN_INFO = "SET_DEVICE_TOKEN_INFO";
|
|
29
|
-
export declare const SET_IN_PROCESSING_LIST = "SET_IN_PROCESSING_LIST";
|
|
30
|
-
export declare class SetLoadingState implements ActionInterface {
|
|
31
|
-
readonly type = "SET_LOADING_STATE";
|
|
32
|
-
payload: boolean;
|
|
33
|
-
}
|
|
34
|
-
export declare class SetTokenInfoState implements ActionInterface {
|
|
35
|
-
readonly type = "SET_TOKEN_INFO";
|
|
36
|
-
payload: TokenInfoModel;
|
|
37
|
-
}
|
|
38
|
-
export declare class SetDeviceTokenInfoState implements ActionInterface {
|
|
39
|
-
readonly type = "SET_DEVICE_TOKEN_INFO";
|
|
40
|
-
payload: TokenDeviceModel;
|
|
41
|
-
}
|
|
42
|
-
export declare class SetInProcessingList implements ActionInterface {
|
|
43
|
-
readonly type = "SET_IN_PROCESSING_LIST";
|
|
44
|
-
payload: Array<string>;
|
|
45
|
-
}
|
|
46
|
-
export type Actions = SetLoadingState | SetDeviceTokenInfoState | SetTokenInfoState | SetInProcessingList;
|
|
@@ -1,4 +1,34 @@
|
|
|
1
|
+
import { ProcessInfoModel } from '../models/entity/base/processInfoModel';
|
|
2
|
+
import { TokenDeviceModel } from '../models/entity/core-token/tokenDeviceModel';
|
|
3
|
+
import { TokenInfoModel } from '../models/entity/core-token/tokenInfoModel';
|
|
1
4
|
import { NtkCmsApiStoreInterface } from './ntkCmsApiStore.interface';
|
|
2
|
-
export interface
|
|
5
|
+
export interface AppStoreModel {
|
|
3
6
|
ntkCmsAPiState: NtkCmsApiStoreInterface;
|
|
4
7
|
}
|
|
8
|
+
export declare const initialState: NtkCmsApiStoreInterface;
|
|
9
|
+
export declare function stateReducer(state: NtkCmsApiStoreInterface, action: Actions): NtkCmsApiStoreInterface;
|
|
10
|
+
export interface ActionInterface {
|
|
11
|
+
readonly type: string;
|
|
12
|
+
payload?: any;
|
|
13
|
+
}
|
|
14
|
+
export declare const SET_LOADING_STATE = "SET_LOADING_STATE";
|
|
15
|
+
export declare const SET_TOKEN_INFO = "SET_TOKEN_INFO";
|
|
16
|
+
export declare const SET_DEVICE_TOKEN_INFO = "SET_DEVICE_TOKEN_INFO";
|
|
17
|
+
export declare const SET_IN_PROCESSING_LIST = "SET_IN_PROCESSING_LIST";
|
|
18
|
+
export declare class SetLoadingState implements ActionInterface {
|
|
19
|
+
readonly type = "SET_LOADING_STATE";
|
|
20
|
+
payload: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare class SetTokenInfoState implements ActionInterface {
|
|
23
|
+
readonly type = "SET_TOKEN_INFO";
|
|
24
|
+
payload: TokenInfoModel;
|
|
25
|
+
}
|
|
26
|
+
export declare class SetDeviceTokenInfoState implements ActionInterface {
|
|
27
|
+
readonly type = "SET_DEVICE_TOKEN_INFO";
|
|
28
|
+
payload: TokenDeviceModel;
|
|
29
|
+
}
|
|
30
|
+
export declare class SetProcessInfoStore implements ActionInterface {
|
|
31
|
+
readonly type = "SET_IN_PROCESSING_LIST";
|
|
32
|
+
payload: Map<string, ProcessInfoModel>;
|
|
33
|
+
}
|
|
34
|
+
export type Actions = SetLoadingState | SetDeviceTokenInfoState | SetTokenInfoState | SetProcessInfoStore;
|