@ws-ui/store 1.11.1 → 1.11.3-rc1
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 +1 -1
- package/dist/index.cjs.js +48 -48
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +9094 -9706
- package/dist/index.es.js.map +1 -1
- package/dist/modules/catalog/thunks.d.ts +1 -1
- package/dist/modules/debugger/thunks.d.ts +2 -2
- package/dist/modules/explorer/thunks.d.ts +19 -20
- package/dist/modules/index.d.ts +1 -1
- package/dist/modules/modals/thunks.d.ts +1 -9
- package/dist/modules/model/thunks.d.ts +4 -4
- package/dist/modules/roles/adapter.d.ts +1 -180
- package/dist/modules/roles/index.d.ts +1 -2
- package/dist/modules/roles/reducer.d.ts +7 -1
- package/dist/modules/roles/thunks.d.ts +4 -5
- package/dist/modules/root/reducer.d.ts +1 -1
- package/dist/modules/root/thunks.d.ts +13 -13
- package/dist/modules/settings/thunks.d.ts +1 -1
- package/dist/modules/shared-app-events/reducer.d.ts +9 -1
- package/dist/modules/shared-app-events/thunks.d.ts +2 -2
- package/dist/modules/shared-conditions/thunks.d.ts +1 -1
- package/dist/modules/shared-css/thunks.d.ts +1 -1
- package/dist/modules/shared-datasources/thunks.d.ts +5 -5
- package/dist/modules/tasks/selectors.d.ts +1 -1
- package/dist/modules/webforms/datasources.adapter.d.ts +1 -1
- package/dist/modules/webforms/thunks.d.ts +2 -2
- package/dist/selectors/catalog.d.ts +13 -13
- package/dist/selectors/common.d.ts +4 -4
- package/dist/selectors/components.d.ts +3 -3
- package/dist/selectors/datasources.d.ts +10 -10
- package/dist/selectors/debugger.d.ts +28 -28
- package/dist/selectors/explorer.d.ts +26 -26
- package/dist/selectors/modals.d.ts +1 -1
- package/dist/selectors/roles.d.ts +24 -24
- package/dist/selectors/settings.d.ts +10 -10
- package/dist/selectors/states.d.ts +6 -6
- package/dist/selectors/styles.d.ts +5 -5
- package/dist/selectors/tabs.d.ts +5 -5
- package/dist/selectors/webforms.d.ts +16 -14
- package/package.json +3 -3
- package/dist/modules/roles/types.d.ts +0 -102
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { ITabFlags } from '@ws-ui/shared';
|
|
2
|
-
export type TRawData = Partial<{
|
|
3
|
-
privileges: IPrivilege[];
|
|
4
|
-
roles: IRole[];
|
|
5
|
-
permissions: Partial<{
|
|
6
|
-
allowed: IPermission[];
|
|
7
|
-
}>;
|
|
8
|
-
forceLogin: boolean;
|
|
9
|
-
restrictedByDefault: boolean;
|
|
10
|
-
}>;
|
|
11
|
-
export type TPermissionOption = Pick<IPermission, 'applyTo' | 'type' | 'subType'>;
|
|
12
|
-
export type TAction = 'read' | 'create' | 'update' | 'drop' | 'execute' | 'promote';
|
|
13
|
-
export type IRolesState = ISanitized & {
|
|
14
|
-
flags: ITabFlags;
|
|
15
|
-
date?: string;
|
|
16
|
-
selectedTab: 'privileges' | 'roles';
|
|
17
|
-
};
|
|
18
|
-
export interface IPrivilege {
|
|
19
|
-
id?: string;
|
|
20
|
-
privilege: string;
|
|
21
|
-
includes?: string[];
|
|
22
|
-
}
|
|
23
|
-
export interface IRole {
|
|
24
|
-
id?: string;
|
|
25
|
-
role: string;
|
|
26
|
-
privileges?: string[];
|
|
27
|
-
}
|
|
28
|
-
export type TRole = Required<IRole>;
|
|
29
|
-
export declare enum EPermissionType {
|
|
30
|
-
DATACLASS = "dataclass",
|
|
31
|
-
METHOD = "method",
|
|
32
|
-
ATTRIBUTE = "attribute",
|
|
33
|
-
DATASTORE = "datastore",
|
|
34
|
-
SINGLETON = "singleton",
|
|
35
|
-
SINGLETON_METHOD = "singletonMethod"
|
|
36
|
-
}
|
|
37
|
-
export declare enum ESubPermissionType {
|
|
38
|
-
DS_METHOD = "dsMethod",
|
|
39
|
-
DATACLASS_METHOD = "dataclassMethod",
|
|
40
|
-
ENTITY_METHOD = "entityMethod",
|
|
41
|
-
ENTITY_SEL_METHOD = "entityselMethod"
|
|
42
|
-
}
|
|
43
|
-
export interface IPermission {
|
|
44
|
-
applyTo: string;
|
|
45
|
-
type: EPermissionType | ESubPermissionType;
|
|
46
|
-
subType?: ESubPermissionType;
|
|
47
|
-
read?: string | string[];
|
|
48
|
-
create?: string | string[];
|
|
49
|
-
update?: string | string[];
|
|
50
|
-
drop?: string | string[];
|
|
51
|
-
execute?: string | string[];
|
|
52
|
-
promote?: string | string[];
|
|
53
|
-
}
|
|
54
|
-
export interface IResourcesByPermission {
|
|
55
|
-
[id: string]: {
|
|
56
|
-
applyTo: IPermission['applyTo'];
|
|
57
|
-
type: IPermission['type'];
|
|
58
|
-
subType?: IPermission['subType'];
|
|
59
|
-
}[];
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Sanitized data
|
|
63
|
-
*/
|
|
64
|
-
export interface ISanitized {
|
|
65
|
-
privileges: TById;
|
|
66
|
-
roles: TRolesDict;
|
|
67
|
-
forceLogin?: boolean;
|
|
68
|
-
restrictedByDefault?: boolean;
|
|
69
|
-
}
|
|
70
|
-
export interface IResourcePermission {
|
|
71
|
-
name: TAction;
|
|
72
|
-
from: string[];
|
|
73
|
-
checked?: boolean;
|
|
74
|
-
info?: string;
|
|
75
|
-
}
|
|
76
|
-
export interface IResource {
|
|
77
|
-
resource: string;
|
|
78
|
-
type: EPermissionType | ESubPermissionType;
|
|
79
|
-
subType?: ESubPermissionType;
|
|
80
|
-
permissions: IResourcePermission[];
|
|
81
|
-
exists?: boolean;
|
|
82
|
-
}
|
|
83
|
-
export type TSanitizedPrivilege = Required<IPrivilege> & {
|
|
84
|
-
parents: string[];
|
|
85
|
-
resources: IResource[];
|
|
86
|
-
};
|
|
87
|
-
export type TById = {
|
|
88
|
-
[id: string]: TSanitizedPrivilege;
|
|
89
|
-
};
|
|
90
|
-
export type TRolesDict = {
|
|
91
|
-
[id: string]: TRole;
|
|
92
|
-
};
|
|
93
|
-
export interface ILink {
|
|
94
|
-
source: string;
|
|
95
|
-
target: string;
|
|
96
|
-
}
|
|
97
|
-
export interface IGraphData {
|
|
98
|
-
selected: string;
|
|
99
|
-
parents: string[][];
|
|
100
|
-
children: string[][];
|
|
101
|
-
links: ILink[];
|
|
102
|
-
}
|