@ws-ui/store 1.10.4-rc1 → 1.11.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.
@@ -13,7 +13,7 @@ export declare const stateReducer: import('redux').Reducer<import('redux').Combi
13
13
  state: "error";
14
14
  error: string;
15
15
  };
16
- roles: import('@ws-ui/shared').IRolesState;
16
+ roles: import('./roles').IRolesState;
17
17
  sharedDatasources: import('./shared-datasources').ISharedDatasourcesState;
18
18
  sharedAppEvents: import('./shared-app-events').ISharedAppEventsState;
19
19
  savedConditions: import('./shared-conditions').ISavedConditionsState;
@@ -1,4 +1,11 @@
1
- import { IOpenModalPayload, IOpenModalReturnValue } from '@ws-ui/shared';
1
+ import { IModal, ModalType } from '@ws-ui/shared';
2
+ interface IOpenModalPayload extends Omit<IModal, 'id' | 'isOpen' | 'type'> {
3
+ type?: ModalType;
4
+ }
5
+ interface IOpenModalReturnValue {
6
+ confirmed?: boolean;
7
+ options?: Record<string, boolean>;
8
+ }
2
9
  export declare const openModal: import('@reduxjs/toolkit').AsyncThunk<IOpenModalReturnValue, IOpenModalPayload, {
3
10
  state?: unknown;
4
11
  dispatch?: import('redux').Dispatch;
@@ -9,3 +16,4 @@ export declare const openModal: import('@reduxjs/toolkit').AsyncThunk<IOpenModal
9
16
  fulfilledMeta?: unknown;
10
17
  rejectedMeta?: unknown;
11
18
  }>;
19
+ export {};
@@ -1,5 +1,184 @@
1
- import { EPermissionType, IResourcePermission, TRole, TRolesDict, TById } from '@ws-ui/shared';
1
+ import { EPermissionType, IGraphData, IPermission, IPrivilege, IResource, IResourcePermission, IResourcesByPermission, ISanitized, TById, TRawData, TRole, TRolesDict, TSanitizedPrivilege } from './types';
2
+ /**
3
+ * pushes uniquely list of items
4
+ * @param array input array
5
+ * @param args list of elements to add to the array
6
+ * @returns an array containing unique fields
7
+ */
8
+ export declare function uniquePush<T = string>(array: T[], ...args: T[]): T[];
9
+ /**
10
+ * Sanitize a privileges array
11
+ * @param data unsanitized data
12
+ * @returns sanitized data
13
+ */
14
+ export declare function sanitizePrivileges(data: IPrivilege[]): TById;
15
+ /**
16
+ * sort list of sanitized pivileges
17
+ * @param dict sanitized data
18
+ * @returns sorted privileges
19
+ */
20
+ export declare function sort(dict: TById): TSanitizedPrivilege[];
21
+ /**
22
+ * Lists the parents of a specific element
23
+ * @param id identifier of the current element
24
+ * @param dict sanitized privileges
25
+ * @returns parents of the current element
26
+ */
27
+ export declare function parents(id: string, dict: TById): string[];
28
+ /**
29
+ * Lists the children of a specific element
30
+ * @param id identifier of the current element
31
+ * @param dict sanitized privileges
32
+ * @returns children of the current element
33
+ */
34
+ export declare function children(id: string, dict: TById): string[];
35
+ /**
36
+ * Calculates from a sanitized privileges dictionary the list of allowed to include children
37
+ * @param id identifier of the current element
38
+ * @param dict sanitized privileges
39
+ * @returns allowed to include privileges
40
+ */
41
+ export declare function allowed(id: string, dict: TById): string[];
42
+ /**
43
+ * Removes an element from a sanitized dictionary
44
+ * @param id identifier of the current element
45
+ * @param dict sanitized privileges
46
+ * @returns new dictionary containing the initialone except the one with "id"
47
+ */
48
+ export declare function remove(id: string, dict: TById): TById;
49
+ /**
50
+ * Adds an existing node as a child of another node
51
+ * @param parentId the parent identifier
52
+ * @param childId the child identifer
53
+ * @param dict sanitized privileges dictionary
54
+ * @returns the new dictionary
55
+ */
56
+ export declare function addIn(parentId: string, childId: string, dict: TById): TById;
57
+ /**
58
+ * Removes an existing node from its (specified) parent
59
+ * @param parentId the parent identifier
60
+ * @param childId the child identifer
61
+ * @param dict sanitized privileges dictionary
62
+ * @returns the new dictionary
63
+ */
64
+ export declare function removeFrom(parentId: string, childId: string, dict: TById): TById;
65
+ /**
66
+ * Create a new privilege
67
+ * @param name the privilege name
68
+ * @param dict sanitized privileges dictionary
69
+ * @returns the new dictionary
70
+ */
71
+ export declare function create(name: string, dict: TById): TById;
2
72
  export declare function createWithResource(name: string, resource: string, type: EPermissionType, action: IResourcePermission['name'], dict: TById): TById;
73
+ /**
74
+ * Renames an existing node
75
+ * @param name the new name
76
+ * @param id the node identifier
77
+ * @param dict sanitized privileges dictionary
78
+ * @returns the new dictionary
79
+ */
80
+ export declare function rename(name: string, id: string, dict: TById): TById;
81
+ /**
82
+ * Populates a list privileges IDs
83
+ * @param ids the identifiers of privileges to populate
84
+ * @param dict sanitized privileges dictionary
85
+ * @returns populated privileges
86
+ */
87
+ export declare function populateShallow(ids: string[], dict: TById): (IPrivilege | null)[];
88
+ /**
89
+ * Get the privilege object from its identifier
90
+ * @param id the identifier of the node
91
+ * @param dict sanitized privileges dictionary
92
+ * @returns populated privilege
93
+ */
94
+ export declare function getPrivilegeById(id: string, dict: TById): TSanitizedPrivilege | null;
95
+ /**
96
+ * Maps the privileges to their permissions
97
+ * @param param0 the raw permission object
98
+ * @returns an object mapping the privilege to its permission
99
+ */
100
+ export declare function actionsToPrivs({ applyTo: _, type, ...actions }: IPermission): {
101
+ [privName: string]: string[];
102
+ };
103
+ /**
104
+ * Converts a raw permission to a resource
105
+ * @param item a permission
106
+ * @returns the resource object
107
+ */
108
+ export declare function getResourceFromType(item: IPermission): IResource;
109
+ /**
110
+ * Sanitizes the raw permissions
111
+ * @param data list of raw permissions
112
+ * @param byKey dictionary
113
+ * @returns a new dictionary containing the sanitized permissions
114
+ */
115
+ export declare function sanitizePermissions(data: IPermission[], byKey: TById): TById;
116
+ /**
117
+ * Converts a dictionary indexed by id to a new one indexed by name
118
+ * @param dict dictioanry
119
+ * @returns a new dictionary indexed by privilege name
120
+ */
121
+ export declare function getDictByName(dict: TById): TById;
122
+ /**
123
+ * Sanitizes the content of roles.json file
124
+ * @param data raw data
125
+ * @returns sanitized data
126
+ */
127
+ export declare function sanitize(data: TRawData): ISanitized;
128
+ /**
129
+ * Converts sanitized data to a valid API payload
130
+ * @param data sanitized dictionary
131
+ * @returns raw data
132
+ */
133
+ export declare function toAPI(data: ISanitized): TRawData;
134
+ export declare function getGraphData(id: string, dict: TById): IGraphData;
135
+ /**
136
+ *
137
+ * @param id privilege id
138
+ * @param permission
139
+ * @param dict
140
+ */
141
+ export declare function addPermission(id: string, permission: IPermission, dict: TById): TById;
142
+ /**
143
+ *
144
+ * @param id
145
+ * @param permission
146
+ * @param dict
147
+ */
148
+ export declare function removePermission(id: string, permission: IPermission, dict: TById): TById;
149
+ /**
150
+ * @param resourcesByPermission
151
+ * @param dict
152
+ */
153
+ export declare function removeMultiplePermissions(resourcesByPermission: IResourcesByPermission, dict: TById): TById;
154
+ /**
155
+ *
156
+ * @param id
157
+ * @param permission
158
+ * @param dict
159
+ */
160
+ export declare function resetResources(id: string, dict: TById): TById;
161
+ /**
162
+ *
163
+ * @param id privilege id
164
+ * @param resource resource name
165
+ * @param type resource type
166
+ * @param permission permission name
167
+ * @param dict privileges dictionary
168
+ * @returns
169
+ */
3
170
  export declare function togglePrivilegePermission(id: string, resource: string, type: EPermissionType, permission: IResourcePermission['name'], dict: TById): TById;
171
+ /**
172
+ *
173
+ * @param id
174
+ * @param permission
175
+ * @param dict
176
+ */
177
+ export declare function togglePermission(id: string, resource: IResource, permission: IResourcePermission, dict: TById): TById;
178
+ export declare function getPromotions(id: string, dict: TById): Record<string, string[]>;
179
+ export declare function getInheritedResources(id: string, dict: TById): IResource[];
4
180
  export declare const toState: (rolesArray: TRole[]) => TRolesDict;
181
+ export declare const removeRole: (id: string, roles: TRolesDict) => TRolesDict;
5
182
  export declare const editRole: (id: string, newName: string, roles: TRolesDict) => TRolesDict;
183
+ export declare const createRole: (id: string, name: string, roles: TRolesDict) => TRolesDict;
184
+ export declare const saveRole: (role: TRole, roles: TRolesDict) => TRolesDict;
@@ -1,5 +1,6 @@
1
- declare const _default: import('redux').Reducer<import('@ws-ui/shared').IRolesState>;
1
+ declare const _default: import('redux').Reducer<import('./types').IRolesState>;
2
2
  export default _default;
3
3
  export * from './reducer';
4
4
  export * from './thunks';
5
+ export * from './types';
5
6
  export * from './adapter';
@@ -1,5 +1,5 @@
1
1
  import { PayloadAction } from '@reduxjs/toolkit';
2
- import { IRolesState, TById, TRawData, TRolesDict } from '@ws-ui/shared';
2
+ import { IRolesState, TById, TRawData, TRolesDict } from './types';
3
3
  declare const stateSlice: import('@reduxjs/toolkit').Slice<IRolesState, {
4
4
  updatePrivileges: (state: import('immer/dist/internal').WritableDraft<IRolesState>, action: PayloadAction<TById>) => void;
5
5
  updateRoles: (state: import('immer/dist/internal').WritableDraft<IRolesState>, action: PayloadAction<TRolesDict>) => void;
@@ -1,5 +1,6 @@
1
- import { ITabFlags, IFileContentResponse, ISetFileContentResponse, ISanitized } from '@ws-ui/shared';
1
+ import { ITabFlags, IFileContentResponse, ISetFileContentResponse } from '@ws-ui/shared';
2
2
  import { AppState } from '..';
3
+ import { ISanitized } from './types';
3
4
  export declare const fetchRoles: import('@reduxjs/toolkit').AsyncThunk<IFileContentResponse<ISanitized>, void, {
4
5
  state: AppState;
5
6
  rejectValue: string;
@@ -0,0 +1,102 @@
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
+ }
@@ -12,7 +12,7 @@ export declare const selectAllTasks: ((state: import('redux').EmptyObject & {
12
12
  state: "error";
13
13
  error: string;
14
14
  };
15
- roles: import('@ws-ui/shared').IRolesState;
15
+ roles: import('..').IRolesState;
16
16
  sharedDatasources: import('..').ISharedDatasourcesState;
17
17
  sharedAppEvents: import('..').ISharedAppEventsState;
18
18
  savedConditions: import('..').ISavedConditionsState;
@@ -12,7 +12,7 @@ export declare const listDsNamespaces: import('lodash').CurriedFunction2<string,
12
12
  state: "error";
13
13
  error: string;
14
14
  };
15
- roles: import('@ws-ui/shared').IRolesState;
15
+ roles: import('..').IRolesState;
16
16
  sharedDatasources: import('..').ISharedDatasourcesState;
17
17
  sharedAppEvents: import('..').ISharedAppEventsState;
18
18
  savedConditions: import('..').ISavedConditionsState;
@@ -12,7 +12,7 @@ export declare const selectCatalog: ((state: import('redux').EmptyObject & {
12
12
  state: "error";
13
13
  error: string;
14
14
  };
15
- roles: import('@ws-ui/shared').IRolesState;
15
+ roles: import('../modules').IRolesState;
16
16
  sharedDatasources: import('../modules').ISharedDatasourcesState;
17
17
  sharedAppEvents: import('../modules').ISharedAppEventsState;
18
18
  savedConditions: import('../modules').ISavedConditionsState;
@@ -35,7 +35,7 @@ export declare const selectCatalog: ((state: import('redux').EmptyObject & {
35
35
  state: "error";
36
36
  error: string;
37
37
  };
38
- roles: import('@ws-ui/shared').IRolesState;
38
+ roles: import('../modules').IRolesState;
39
39
  sharedDatasources: import('../modules').ISharedDatasourcesState;
40
40
  sharedAppEvents: import('../modules').ISharedAppEventsState;
41
41
  savedConditions: import('../modules').ISavedConditionsState;
@@ -63,7 +63,7 @@ export declare const selectCatalogState: ((state: import('redux').EmptyObject &
63
63
  state: "error";
64
64
  error: string;
65
65
  };
66
- roles: import('@ws-ui/shared').IRolesState;
66
+ roles: import('../modules').IRolesState;
67
67
  sharedDatasources: import('../modules').ISharedDatasourcesState;
68
68
  sharedAppEvents: import('../modules').ISharedAppEventsState;
69
69
  savedConditions: import('../modules').ISavedConditionsState;
@@ -86,7 +86,7 @@ export declare const selectCatalogState: ((state: import('redux').EmptyObject &
86
86
  state: "error";
87
87
  error: string;
88
88
  };
89
- roles: import('@ws-ui/shared').IRolesState;
89
+ roles: import('../modules').IRolesState;
90
90
  sharedDatasources: import('../modules').ISharedDatasourcesState;
91
91
  sharedAppEvents: import('../modules').ISharedAppEventsState;
92
92
  savedConditions: import('../modules').ISavedConditionsState;
@@ -114,7 +114,7 @@ export declare const selectDataclasses: ((state: import('redux').EmptyObject & {
114
114
  state: "error";
115
115
  error: string;
116
116
  };
117
- roles: import('@ws-ui/shared').IRolesState;
117
+ roles: import('../modules').IRolesState;
118
118
  sharedDatasources: import('../modules').ISharedDatasourcesState;
119
119
  sharedAppEvents: import('../modules').ISharedAppEventsState;
120
120
  savedConditions: import('../modules').ISavedConditionsState;
@@ -142,7 +142,7 @@ export declare const selectSingletons: ((state: import('redux').EmptyObject & {
142
142
  state: "error";
143
143
  error: string;
144
144
  };
145
- roles: import('@ws-ui/shared').IRolesState;
145
+ roles: import('../modules').IRolesState;
146
146
  sharedDatasources: import('../modules').ISharedDatasourcesState;
147
147
  sharedAppEvents: import('../modules').ISharedAppEventsState;
148
148
  savedConditions: import('../modules').ISavedConditionsState;
@@ -170,7 +170,7 @@ export declare const selectVirtualDataClasses: ((state: import('redux').EmptyObj
170
170
  state: "error";
171
171
  error: string;
172
172
  };
173
- roles: import('@ws-ui/shared').IRolesState;
173
+ roles: import('../modules').IRolesState;
174
174
  sharedDatasources: import('../modules').ISharedDatasourcesState;
175
175
  sharedAppEvents: import('../modules').ISharedAppEventsState;
176
176
  savedConditions: import('../modules').ISavedConditionsState;
@@ -198,7 +198,7 @@ export declare const selectCatalogMethods: ((state: import('redux').EmptyObject
198
198
  state: "error";
199
199
  error: string;
200
200
  };
201
- roles: import('@ws-ui/shared').IRolesState;
201
+ roles: import('../modules').IRolesState;
202
202
  sharedDatasources: import('../modules').ISharedDatasourcesState;
203
203
  sharedAppEvents: import('../modules').ISharedAppEventsState;
204
204
  savedConditions: import('../modules').ISavedConditionsState;
@@ -12,7 +12,7 @@ export declare const selectAppState: ((state: import('redux').EmptyObject & {
12
12
  state: "error";
13
13
  error: string;
14
14
  };
15
- roles: import('@ws-ui/shared').IRolesState;
15
+ roles: import('../modules').IRolesState;
16
16
  sharedDatasources: import('../modules').ISharedDatasourcesState;
17
17
  sharedAppEvents: import('../modules').ISharedAppEventsState;
18
18
  savedConditions: import('../modules').ISavedConditionsState;
@@ -35,7 +35,7 @@ export declare const selectAppState: ((state: import('redux').EmptyObject & {
35
35
  state: "error";
36
36
  error: string;
37
37
  };
38
- roles: import('@ws-ui/shared').IRolesState;
38
+ roles: import('../modules').IRolesState;
39
39
  sharedDatasources: import('../modules').ISharedDatasourcesState;
40
40
  sharedAppEvents: import('../modules').ISharedAppEventsState;
41
41
  savedConditions: import('../modules').ISavedConditionsState;
@@ -58,7 +58,7 @@ export declare const selectAppState: ((state: import('redux').EmptyObject & {
58
58
  state: "error";
59
59
  error: string;
60
60
  };
61
- roles: import('@ws-ui/shared').IRolesState;
61
+ roles: import('../modules').IRolesState;
62
62
  sharedDatasources: import('../modules').ISharedDatasourcesState;
63
63
  sharedAppEvents: import('../modules').ISharedAppEventsState;
64
64
  savedConditions: import('../modules').ISavedConditionsState;
@@ -81,7 +81,7 @@ export declare const selectAppState: ((state: import('redux').EmptyObject & {
81
81
  state: "error";
82
82
  error: string;
83
83
  };
84
- roles: import('@ws-ui/shared').IRolesState;
84
+ roles: import('../modules').IRolesState;
85
85
  sharedDatasources: import('../modules').ISharedDatasourcesState;
86
86
  sharedAppEvents: import('../modules').ISharedAppEventsState;
87
87
  savedConditions: import('../modules').ISavedConditionsState;
@@ -17,7 +17,7 @@ export declare const selectComponentsByPath: (tabPath: string) => ((state: impor
17
17
  state: "error";
18
18
  error: string;
19
19
  };
20
- roles: import('@ws-ui/shared').IRolesState;
20
+ roles: import('..').IRolesState;
21
21
  sharedDatasources: import('..').ISharedDatasourcesState;
22
22
  sharedAppEvents: import('..').ISharedAppEventsState;
23
23
  savedConditions: import('..').ISavedConditionsState;
@@ -17,7 +17,7 @@ export declare const selectDatasourcesByPath: (tabPath: string) => ((state: impo
17
17
  state: "error";
18
18
  error: string;
19
19
  };
20
- roles: import('@ws-ui/shared').IRolesState;
20
+ roles: import('../modules').IRolesState;
21
21
  sharedDatasources: import('../modules').ISharedDatasourcesState;
22
22
  sharedAppEvents: import('../modules').ISharedAppEventsState;
23
23
  savedConditions: import('../modules').ISavedConditionsState;
@@ -52,7 +52,7 @@ export declare const selectDatasource: (id: string, namespace: string, tabPath:
52
52
  state: "error";
53
53
  error: string;
54
54
  };
55
- roles: import('@ws-ui/shared').IRolesState;
55
+ roles: import('../modules').IRolesState;
56
56
  sharedDatasources: import('../modules').ISharedDatasourcesState;
57
57
  sharedAppEvents: import('../modules').ISharedAppEventsState;
58
58
  savedConditions: import('../modules').ISavedConditionsState;
@@ -75,7 +75,7 @@ export declare const selectDatasource: (id: string, namespace: string, tabPath:
75
75
  state: "error";
76
76
  error: string;
77
77
  };
78
- roles: import('@ws-ui/shared').IRolesState;
78
+ roles: import('../modules').IRolesState;
79
79
  sharedDatasources: import('../modules').ISharedDatasourcesState;
80
80
  sharedAppEvents: import('../modules').ISharedAppEventsState;
81
81
  savedConditions: import('../modules').ISavedConditionsState;
@@ -106,7 +106,7 @@ export declare const selectSharedDatasources: ((state: import('redux').EmptyObje
106
106
  state: "error";
107
107
  error: string;
108
108
  };
109
- roles: import('@ws-ui/shared').IRolesState;
109
+ roles: import('../modules').IRolesState;
110
110
  sharedDatasources: import('../modules').ISharedDatasourcesState;
111
111
  sharedAppEvents: import('../modules').ISharedAppEventsState;
112
112
  savedConditions: import('../modules').ISavedConditionsState;
@@ -131,7 +131,7 @@ export declare const selectSharedDatasources: ((state: import('redux').EmptyObje
131
131
  state: "error";
132
132
  error: string;
133
133
  };
134
- roles: import('@ws-ui/shared').IRolesState;
134
+ roles: import('../modules').IRolesState;
135
135
  sharedDatasources: import('../modules').ISharedDatasourcesState;
136
136
  sharedAppEvents: import('../modules').ISharedAppEventsState;
137
137
  savedConditions: import('../modules').ISavedConditionsState;
@@ -161,7 +161,7 @@ export declare const selectSharedDatasourcesState: ((state: import('redux').Empt
161
161
  state: "error";
162
162
  error: string;
163
163
  };
164
- roles: import('@ws-ui/shared').IRolesState;
164
+ roles: import('../modules').IRolesState;
165
165
  sharedDatasources: import('../modules').ISharedDatasourcesState;
166
166
  sharedAppEvents: import('../modules').ISharedAppEventsState;
167
167
  savedConditions: import('../modules').ISavedConditionsState;
@@ -184,7 +184,7 @@ export declare const selectSharedDatasourcesState: ((state: import('redux').Empt
184
184
  state: "error";
185
185
  error: string;
186
186
  };
187
- roles: import('@ws-ui/shared').IRolesState;
187
+ roles: import('../modules').IRolesState;
188
188
  sharedDatasources: import('../modules').ISharedDatasourcesState;
189
189
  sharedAppEvents: import('../modules').ISharedAppEventsState;
190
190
  savedConditions: import('../modules').ISavedConditionsState;
@@ -222,7 +222,7 @@ export declare const selectAllDatasourcesByPath: (tabPath: string, exclude?: "pr
222
222
  state: "error";
223
223
  error: string;
224
224
  };
225
- roles: import('@ws-ui/shared').IRolesState;
225
+ roles: import('../modules').IRolesState;
226
226
  sharedDatasources: import('../modules').ISharedDatasourcesState;
227
227
  sharedAppEvents: import('../modules').ISharedAppEventsState;
228
228
  savedConditions: import('../modules').ISavedConditionsState;