@ws-ui/store 0.3.1 → 0.3.4
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/dist/hooks/store.d.ts +9 -60
- package/dist/index.cjs.js +47 -60
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6718 -6727
- package/dist/index.es.js.map +1 -1
- package/dist/modules/catalog/index.d.ts +1 -1
- package/dist/modules/catalog/reducer.d.ts +4 -5
- package/dist/modules/catalog/thunks.d.ts +8 -2
- package/dist/modules/debugger/index.d.ts +1 -1
- package/dist/modules/debugger/reducer.d.ts +72 -71
- package/dist/modules/debugger/thunks.d.ts +18 -3
- package/dist/modules/debugger/types.d.ts +1 -0
- package/dist/modules/debugger/utils.d.ts +1 -0
- package/dist/modules/explorer/index.d.ts +1 -1
- package/dist/modules/explorer/reducer.d.ts +17 -16
- package/dist/modules/explorer/thunks.d.ts +211 -60
- package/dist/modules/explorer/types.d.ts +1 -0
- package/dist/modules/explorer/utils.d.ts +1 -0
- package/dist/modules/index.d.ts +15 -30
- package/dist/modules/modals/index.d.ts +1 -1
- package/dist/modules/modals/reducer.d.ts +10 -9
- package/dist/modules/modals/thunks.d.ts +11 -1
- package/dist/modules/modals/types.d.ts +1 -0
- package/dist/modules/model/helpers.d.ts +3 -3
- package/dist/modules/model/index.d.ts +1 -1
- package/dist/modules/model/reducer.d.ts +7 -10
- package/dist/modules/model/selectors.d.ts +6 -2
- package/dist/modules/model/subjects.d.ts +2 -1
- package/dist/modules/model/thunks.d.ts +56 -24
- package/dist/modules/model/types.d.ts +1 -1
- package/dist/modules/model/utils.d.ts +4 -3
- package/dist/modules/roles/adapter.d.ts +7 -1
- package/dist/modules/roles/index.d.ts +1 -16
- package/dist/modules/roles/reducer.d.ts +17 -39
- package/dist/modules/roles/thunks.d.ts +24 -5
- package/dist/modules/roles/types.d.ts +10 -5
- package/dist/modules/root/index.d.ts +1 -1
- package/dist/modules/root/reducer.d.ts +92 -100
- package/dist/modules/root/thunks.d.ts +162 -44
- package/dist/modules/root/types.d.ts +1 -2
- package/dist/modules/settings/index.d.ts +1 -1
- package/dist/modules/settings/reducer.d.ts +11 -13
- package/dist/modules/settings/thunks.d.ts +18 -2
- package/dist/modules/settings/types.d.ts +1 -0
- package/dist/modules/settings/utils.d.ts +2 -1
- package/dist/modules/shared-conditions/index.d.ts +1 -1
- package/dist/modules/shared-conditions/reducer.d.ts +18 -17
- package/dist/modules/shared-conditions/thunks.d.ts +8 -1
- package/dist/modules/shared-conditions/utils.d.ts +1 -0
- package/dist/modules/shared-css/index.d.ts +1 -1
- package/dist/modules/shared-css/reducer.d.ts +9 -8
- package/dist/modules/shared-css/thunks.d.ts +8 -1
- package/dist/modules/shared-datasources/index.d.ts +1 -1
- package/dist/modules/shared-datasources/reducer.d.ts +5 -5
- package/dist/modules/shared-datasources/thunks.d.ts +50 -9
- package/dist/modules/tabs/index.d.ts +1 -1
- package/dist/modules/tabs/reducer.d.ts +1 -1
- package/dist/modules/tabs/selectors.d.ts +24 -40
- package/dist/modules/webforms/datasources.adapter.d.ts +12 -29
- package/dist/modules/webforms/index.d.ts +1 -1
- package/dist/modules/webforms/reducer.d.ts +20 -22
- package/dist/modules/webforms/thunks.d.ts +99 -17
- package/dist/modules/webforms/types.d.ts +1 -0
- package/dist/provider.d.ts +1 -0
- package/dist/selectors/catalog.d.ts +52 -174
- package/dist/selectors/common.d.ts +48 -109
- package/dist/selectors/components.d.ts +23 -39
- package/dist/selectors/datasources.d.ts +74 -165
- package/dist/selectors/debugger.d.ts +163 -493
- package/dist/selectors/explorer.d.ts +485 -875
- package/dist/selectors/modals.d.ts +13 -29
- package/dist/selectors/roles.d.ts +126 -367
- package/dist/selectors/settings.d.ts +156 -337
- package/dist/selectors/states.d.ts +63 -153
- package/dist/selectors/styles.d.ts +78 -154
- package/dist/selectors/tabs.d.ts +64 -110
- package/dist/selectors/webforms.d.ts +177 -373
- package/dist/store.d.ts +44 -1
- package/dist/utils.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { ITab } from '@ws-ui/shared';
|
|
2
|
-
import { ServerModel } from '
|
|
2
|
+
import { ServerModel } from './types';
|
|
3
3
|
import { AppState } from '..';
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
export declare const fetchModel: import('@reduxjs/toolkit').AsyncThunk<ServerModel, void, {
|
|
5
6
|
state: AppState;
|
|
6
|
-
rejectValue:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
rejectValue: string;
|
|
8
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
9
|
+
extra?: unknown;
|
|
10
|
+
serializedErrorType?: unknown;
|
|
11
|
+
pendingMeta?: unknown;
|
|
12
|
+
fulfilledMeta?: unknown;
|
|
13
|
+
rejectedMeta?: unknown;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const saveModel: import('@reduxjs/toolkit').AsyncThunk<{
|
|
10
16
|
date: string;
|
|
11
17
|
ext: string;
|
|
12
18
|
name: string;
|
|
@@ -18,40 +24,66 @@ export declare const saveModel: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
18
24
|
}, ITab<ServerModel, Partial<{
|
|
19
25
|
initialLineInfo: {
|
|
20
26
|
line: number;
|
|
21
|
-
offset?: number
|
|
27
|
+
offset?: number;
|
|
22
28
|
lastModification: number;
|
|
23
29
|
};
|
|
24
30
|
initialSelectionInfo: {
|
|
25
|
-
selection: import(
|
|
31
|
+
selection: import('@ws-ui/shared').ITextEditorSelection;
|
|
26
32
|
lastModification: number;
|
|
27
33
|
};
|
|
28
34
|
diffContent: string;
|
|
29
|
-
attributes: import(
|
|
30
|
-
source: import(
|
|
31
|
-
editor: import(
|
|
32
|
-
ext: import(
|
|
35
|
+
attributes: import('@ws-ui/shared').IMethodAttributes;
|
|
36
|
+
source: import('@ws-ui/shared').ISource;
|
|
37
|
+
editor: import('@ws-ui/shared').IEditor;
|
|
38
|
+
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
33
39
|
kind: string;
|
|
34
|
-
}>>,
|
|
35
|
-
|
|
40
|
+
}>>, {
|
|
41
|
+
state: AppState;
|
|
42
|
+
rejectValue: string;
|
|
43
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
44
|
+
extra?: unknown;
|
|
45
|
+
serializedErrorType?: unknown;
|
|
46
|
+
pendingMeta?: unknown;
|
|
47
|
+
fulfilledMeta?: unknown;
|
|
48
|
+
rejectedMeta?: unknown;
|
|
49
|
+
}>;
|
|
50
|
+
export declare const openModel: import('@reduxjs/toolkit').AsyncThunk<void | ITab<any, Partial<{
|
|
36
51
|
initialLineInfo: {
|
|
37
52
|
line: number;
|
|
38
|
-
offset?: number
|
|
53
|
+
offset?: number;
|
|
39
54
|
lastModification: number;
|
|
40
55
|
};
|
|
41
56
|
initialSelectionInfo: {
|
|
42
|
-
selection: import(
|
|
57
|
+
selection: import('@ws-ui/shared').ITextEditorSelection;
|
|
43
58
|
lastModification: number;
|
|
44
59
|
};
|
|
45
60
|
diffContent: string;
|
|
46
|
-
attributes: import(
|
|
47
|
-
source: import(
|
|
48
|
-
editor: import(
|
|
49
|
-
ext: import(
|
|
61
|
+
attributes: import('@ws-ui/shared').IMethodAttributes;
|
|
62
|
+
source: import('@ws-ui/shared').ISource;
|
|
63
|
+
editor: import('@ws-ui/shared').IEditor;
|
|
64
|
+
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
50
65
|
kind: string;
|
|
51
|
-
}>>, {},
|
|
52
|
-
|
|
66
|
+
}>>, {}, {
|
|
67
|
+
state: AppState;
|
|
68
|
+
rejectValue: string;
|
|
69
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
70
|
+
extra?: unknown;
|
|
71
|
+
serializedErrorType?: unknown;
|
|
72
|
+
pendingMeta?: unknown;
|
|
73
|
+
fulfilledMeta?: unknown;
|
|
74
|
+
rejectedMeta?: unknown;
|
|
75
|
+
}>;
|
|
76
|
+
export declare const tryRenameDataclass: import('@reduxjs/toolkit').AsyncThunk<void, {
|
|
53
77
|
dataclassId: string;
|
|
54
78
|
selectionId: string;
|
|
55
79
|
name: string;
|
|
56
|
-
}, {
|
|
57
|
-
|
|
80
|
+
}, {
|
|
81
|
+
state?: unknown;
|
|
82
|
+
dispatch?: import('redux').Dispatch;
|
|
83
|
+
extra?: unknown;
|
|
84
|
+
rejectValue?: unknown;
|
|
85
|
+
serializedErrorType?: unknown;
|
|
86
|
+
pendingMeta?: unknown;
|
|
87
|
+
fulfilledMeta?: unknown;
|
|
88
|
+
rejectedMeta?: unknown;
|
|
89
|
+
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ServerModel } from './types';
|
|
2
|
+
|
|
2
3
|
declare const addUUIDToModel: (content: ServerModel) => {
|
|
3
4
|
dataClasses: {
|
|
4
5
|
name: string;
|
|
@@ -6,8 +7,8 @@ declare const addUUIDToModel: (content: ServerModel) => {
|
|
|
6
7
|
collectionName: string;
|
|
7
8
|
scope: DataclassScope;
|
|
8
9
|
attributes: catalog.IAttribute[];
|
|
9
|
-
uuid?: string
|
|
10
|
-
virtual?: boolean
|
|
10
|
+
uuid?: string;
|
|
11
|
+
virtual?: boolean;
|
|
11
12
|
defaultTopSize?: number | undefined;
|
|
12
13
|
leave_tag_on_delete?: boolean | undefined;
|
|
13
14
|
prevent_journaling?: boolean | undefined;
|
|
@@ -21,6 +22,6 @@ declare const addUUIDToModel: (content: ServerModel) => {
|
|
|
21
22
|
}> | undefined;
|
|
22
23
|
}[];
|
|
23
24
|
toJSON: boolean;
|
|
24
|
-
extraProperties?: catalog.IModelProperties
|
|
25
|
+
extraProperties?: catalog.IModelProperties;
|
|
25
26
|
};
|
|
26
27
|
export { addUUIDToModel };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EPermissionType, IGraphData, IPermission, IPrivilege, IResource, IResourcePermission, ISanitized, TById, TRawData, TRole, TRolesDict, TSanitizedPrivilege } from './types';
|
|
1
|
+
import { EPermissionType, IGraphData, IPermission, IPrivilege, IResource, IResourcePermission, IResourcesByPermission, ISanitized, TById, TRawData, TRole, TRolesDict, TSanitizedPrivilege } from './types';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* pushes uniquely list of items
|
|
4
5
|
* @param array input array
|
|
@@ -146,6 +147,11 @@ export declare function addPermission(id: string, permission: IPermission, dict:
|
|
|
146
147
|
* @param dict
|
|
147
148
|
*/
|
|
148
149
|
export declare function removePermission(id: string, permission: IPermission, dict: TById): TById;
|
|
150
|
+
/**
|
|
151
|
+
* @param resourcesByPermission
|
|
152
|
+
* @param dict
|
|
153
|
+
*/
|
|
154
|
+
export declare function removeMultiplePermissions(resourcesByPermission: IResourcesByPermission, dict: TById): TById;
|
|
149
155
|
/**
|
|
150
156
|
*
|
|
151
157
|
* @param id
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
declare const _default: import(
|
|
2
|
-
flags: {
|
|
3
|
-
touched?: boolean | undefined;
|
|
4
|
-
removed?: boolean | undefined;
|
|
5
|
-
pinned?: boolean | undefined;
|
|
6
|
-
loading?: boolean | undefined;
|
|
7
|
-
old?: boolean | undefined;
|
|
8
|
-
enabled?: boolean | undefined;
|
|
9
|
-
confirmed?: boolean | undefined;
|
|
10
|
-
};
|
|
11
|
-
date?: string | undefined;
|
|
12
|
-
privileges: import("./types").TById;
|
|
13
|
-
roles: import("./types").TRolesDict;
|
|
14
|
-
forceLogin?: boolean | undefined;
|
|
15
|
-
selectedTab: "roles" | "privileges";
|
|
16
|
-
}>;
|
|
1
|
+
declare const _default: import('redux').Reducer<import('./types').IRolesState>;
|
|
17
2
|
export default _default;
|
|
18
3
|
export * from './reducer';
|
|
19
4
|
export * from './thunks';
|
|
@@ -1,33 +1,19 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { IRolesState, TById, TRawData, TRolesDict } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
loading?: boolean | undefined;
|
|
9
|
-
old?: boolean | undefined;
|
|
10
|
-
enabled?: boolean | undefined;
|
|
11
|
-
confirmed?: boolean | undefined;
|
|
12
|
-
};
|
|
13
|
-
date?: string | undefined;
|
|
14
|
-
privileges: TById;
|
|
15
|
-
roles: TRolesDict;
|
|
16
|
-
forceLogin?: boolean | undefined;
|
|
17
|
-
selectedTab: "roles" | "privileges";
|
|
18
|
-
}, {
|
|
19
|
-
updatePrivileges: (state: import("immer/dist/internal.js").WritableDraft<IRolesState>, action: PayloadAction<TById>) => void;
|
|
20
|
-
updateRoles: (state: import("immer/dist/internal.js").WritableDraft<IRolesState>, action: PayloadAction<TRolesDict>) => void;
|
|
21
|
-
updateRolesAndPrivileges: (state: import("immer/dist/internal.js").WritableDraft<IRolesState>, action: PayloadAction<{
|
|
3
|
+
|
|
4
|
+
declare const stateSlice: import('@reduxjs/toolkit').Slice<IRolesState, {
|
|
5
|
+
updatePrivileges: (state: import('immer/dist/internal.js').WritableDraft<IRolesState>, action: PayloadAction<TById>) => void;
|
|
6
|
+
updateRoles: (state: import('immer/dist/internal.js').WritableDraft<IRolesState>, action: PayloadAction<TRolesDict>) => void;
|
|
7
|
+
updateRolesAndPrivileges: (state: import('immer/dist/internal.js').WritableDraft<IRolesState>, action: PayloadAction<{
|
|
22
8
|
roles: TRolesDict;
|
|
23
9
|
privileges: TById;
|
|
24
10
|
}>) => void;
|
|
25
|
-
toggleTab: (state: import(
|
|
26
|
-
toggleForceLogin: (state: import(
|
|
27
|
-
setRolesContent(state: import(
|
|
11
|
+
toggleTab: (state: import('immer/dist/internal.js').WritableDraft<IRolesState>, action: PayloadAction<"privileges" | "roles">) => void;
|
|
12
|
+
toggleForceLogin: (state: import('immer/dist/internal.js').WritableDraft<IRolesState>, action: PayloadAction<boolean>) => void;
|
|
13
|
+
setRolesContent(state: import('immer/dist/internal.js').WritableDraft<IRolesState>, action: PayloadAction<{
|
|
28
14
|
content: TRawData;
|
|
29
15
|
date?: string;
|
|
30
|
-
flags?: IRolesState[
|
|
16
|
+
flags?: IRolesState["flags"];
|
|
31
17
|
}>): {
|
|
32
18
|
flags: {
|
|
33
19
|
touched?: boolean | undefined;
|
|
@@ -38,27 +24,19 @@ declare const stateSlice: import("@reduxjs/toolkit").Slice<{
|
|
|
38
24
|
enabled?: boolean | undefined;
|
|
39
25
|
confirmed?: boolean | undefined;
|
|
40
26
|
};
|
|
41
|
-
date?: string
|
|
27
|
+
date?: string;
|
|
42
28
|
privileges: TById;
|
|
43
29
|
roles: TRolesDict;
|
|
44
|
-
forceLogin?: boolean
|
|
45
|
-
selectedTab: "
|
|
30
|
+
forceLogin?: boolean;
|
|
31
|
+
selectedTab: "privileges" | "roles";
|
|
46
32
|
};
|
|
47
33
|
}, "roles">;
|
|
48
|
-
export declare const updatePrivileges: import(
|
|
34
|
+
export declare const updatePrivileges: import('@reduxjs/toolkit').ActionCreatorWithPayload<TById, "roles/updatePrivileges">, updateRoles: import('@reduxjs/toolkit').ActionCreatorWithPayload<TRolesDict, "roles/updateRoles">, setRolesContent: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
49
35
|
content: TRawData;
|
|
50
|
-
date?: string
|
|
51
|
-
flags?:
|
|
52
|
-
|
|
53
|
-
removed: boolean;
|
|
54
|
-
pinned: boolean;
|
|
55
|
-
loading: boolean;
|
|
56
|
-
old: boolean;
|
|
57
|
-
enabled: boolean;
|
|
58
|
-
confirmed: boolean;
|
|
59
|
-
}> | undefined;
|
|
60
|
-
}, string>, toggleTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"roles" | "privileges", string>, toggleForceLogin: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, updateRolesAndPrivileges: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
36
|
+
date?: string;
|
|
37
|
+
flags?: IRolesState["flags"];
|
|
38
|
+
}, "roles/setRolesContent">, toggleTab: import('@reduxjs/toolkit').ActionCreatorWithPayload<"roles" | "privileges", "roles/toggleTab">, toggleForceLogin: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "roles/toggleForceLogin">, updateRolesAndPrivileges: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
61
39
|
roles: TRolesDict;
|
|
62
40
|
privileges: TById;
|
|
63
|
-
},
|
|
41
|
+
}, "roles/updateRolesAndPrivileges">;
|
|
64
42
|
export default stateSlice;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import { ITabFlags } from '@ws-ui/shared';
|
|
2
|
-
import { IFileContentResponse, ISetFileContentResponse } from '@ws-ui/shared';
|
|
1
|
+
import { ITabFlags, IFileContentResponse, ISetFileContentResponse } from '@ws-ui/shared';
|
|
3
2
|
import { AppState } from '..';
|
|
4
3
|
import { ISanitized } from './types';
|
|
5
|
-
|
|
4
|
+
|
|
5
|
+
export declare const fetchRoles: import('@reduxjs/toolkit').AsyncThunk<IFileContentResponse<ISanitized>, void, {
|
|
6
6
|
state: AppState;
|
|
7
7
|
rejectValue: string;
|
|
8
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
9
|
+
extra?: unknown;
|
|
10
|
+
serializedErrorType?: unknown;
|
|
11
|
+
pendingMeta?: unknown;
|
|
12
|
+
fulfilledMeta?: unknown;
|
|
13
|
+
rejectedMeta?: unknown;
|
|
8
14
|
}>;
|
|
9
|
-
export declare const fetchRolesChanges: import(
|
|
15
|
+
export declare const fetchRolesChanges: import('@reduxjs/toolkit').AsyncThunk<Partial<{
|
|
10
16
|
touched: boolean;
|
|
11
17
|
removed: boolean;
|
|
12
18
|
pinned: boolean;
|
|
@@ -16,9 +22,22 @@ export declare const fetchRolesChanges: import("@reduxjs/toolkit").AsyncThunk<Pa
|
|
|
16
22
|
confirmed: boolean;
|
|
17
23
|
}>, void, {
|
|
18
24
|
state: AppState;
|
|
25
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
26
|
+
extra?: unknown;
|
|
27
|
+
rejectValue?: unknown;
|
|
28
|
+
serializedErrorType?: unknown;
|
|
29
|
+
pendingMeta?: unknown;
|
|
30
|
+
fulfilledMeta?: unknown;
|
|
31
|
+
rejectedMeta?: unknown;
|
|
19
32
|
}>;
|
|
20
33
|
export declare const isRolesOutdated: (date: string | undefined) => Promise<boolean>;
|
|
21
|
-
export declare const saveRoles: import(
|
|
34
|
+
export declare const saveRoles: import('@reduxjs/toolkit').AsyncThunk<ISetFileContentResponse, ISanitized, {
|
|
22
35
|
state: AppState;
|
|
23
36
|
rejectValue: string | ITabFlags;
|
|
37
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
38
|
+
extra?: unknown;
|
|
39
|
+
serializedErrorType?: unknown;
|
|
40
|
+
pendingMeta?: unknown;
|
|
41
|
+
fulfilledMeta?: unknown;
|
|
42
|
+
rejectedMeta?: unknown;
|
|
24
43
|
}>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Raw API response typing
|
|
3
|
-
*/
|
|
4
1
|
import { ITabFlags } from '@ws-ui/shared';
|
|
2
|
+
|
|
5
3
|
export type TRawData = Partial<{
|
|
6
4
|
privileges: IPrivilege[];
|
|
7
5
|
roles: IRole[];
|
|
@@ -37,8 +35,8 @@ export declare enum EPermissionType {
|
|
|
37
35
|
ENTITY_SEL_METHOD = "entityselMethod",
|
|
38
36
|
ATTRIBUTE = "attribute",
|
|
39
37
|
DATASTORE = "datastore",
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
SINGLETON = "singleton",
|
|
39
|
+
SINGLETON_METHOD = "singletonMethod"
|
|
42
40
|
}
|
|
43
41
|
export interface IPermission {
|
|
44
42
|
applyTo: string;
|
|
@@ -50,6 +48,12 @@ export interface IPermission {
|
|
|
50
48
|
execute?: string | string[];
|
|
51
49
|
promote?: string | string[];
|
|
52
50
|
}
|
|
51
|
+
export interface IResourcesByPermission {
|
|
52
|
+
[id: string]: {
|
|
53
|
+
applyTo: IPermission['applyTo'];
|
|
54
|
+
type: IPermission['type'];
|
|
55
|
+
}[];
|
|
56
|
+
}
|
|
53
57
|
/**
|
|
54
58
|
* Sanitized data
|
|
55
59
|
*/
|
|
@@ -68,6 +72,7 @@ export interface IResource {
|
|
|
68
72
|
resource: string;
|
|
69
73
|
type: EPermissionType;
|
|
70
74
|
permissions: IResourcePermission[];
|
|
75
|
+
exists?: boolean;
|
|
71
76
|
}
|
|
72
77
|
export type TSanitizedPrivilege = Required<IPrivilege> & {
|
|
73
78
|
parents: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('redux').Reducer<import('./types').IRootState>;
|
|
2
2
|
export default _default;
|
|
3
3
|
export * from './reducer';
|
|
4
4
|
export * from './thunks';
|