@fluxo-dev/api-client-base 0.0.47 → 0.0.48
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/index.cjs.js
CHANGED
|
@@ -2828,8 +2828,12 @@ class FluxoStateDispatcher {
|
|
|
2828
2828
|
static dispatchAllowedFrontends(frontends) {
|
|
2829
2829
|
state.store.dispatch(state.setAllowedFrontends(frontends));
|
|
2830
2830
|
}
|
|
2831
|
-
static
|
|
2832
|
-
state.store.dispatch(state.
|
|
2831
|
+
static dispatchSysRoleAccess(hasAdminAccess, hasDeveloperAccess, hasDataAnalystAccess) {
|
|
2832
|
+
state.store.dispatch(state.setSysRoleAccess({
|
|
2833
|
+
admin: hasAdminAccess,
|
|
2834
|
+
developer: hasDeveloperAccess,
|
|
2835
|
+
dataAnalyst: hasDataAnalystAccess
|
|
2836
|
+
}));
|
|
2833
2837
|
}
|
|
2834
2838
|
static dispatchSetConfiguration(items) {
|
|
2835
2839
|
state.store.dispatch(state.setConfiguration(items));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluxo-dev/api-client-base",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"react": "^18.3.1",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"react-router-dom": "^6.11.2",
|
|
9
9
|
"react-redux": "^8.0.5",
|
|
10
10
|
"@reduxjs/toolkit": "^1.9.1",
|
|
11
|
-
"@fluxo-dev/state": "^0.0.
|
|
11
|
+
"@fluxo-dev/state": "^0.0.48"
|
|
12
12
|
},
|
|
13
13
|
"main": "./index.cjs.js",
|
|
14
14
|
"types": "./index.cjs.d.ts"
|
|
@@ -17,6 +17,8 @@ export type InitialConfiguration = {
|
|
|
17
17
|
currentFrontend: string;
|
|
18
18
|
isUserLogged: boolean;
|
|
19
19
|
hasAdminAccess: boolean;
|
|
20
|
+
hasDeveloperAccess: boolean;
|
|
21
|
+
hasDataAnalystAccess: boolean;
|
|
20
22
|
};
|
|
21
23
|
export declare class ConfigurationService {
|
|
22
24
|
getInitialConfiguration(): Promise<InitialConfiguration>;
|
|
@@ -11,7 +11,7 @@ export declare class FluxoStateDispatcher {
|
|
|
11
11
|
static dispatchCloseNavbar(): void;
|
|
12
12
|
static dispatchSetAppMenu(items: AppMenuItem[]): void;
|
|
13
13
|
static dispatchAllowedFrontends(frontends: string[]): void;
|
|
14
|
-
static
|
|
14
|
+
static dispatchSysRoleAccess(hasAdminAccess: boolean, hasDeveloperAccess: boolean, hasDataAnalystAccess: boolean): void;
|
|
15
15
|
static dispatchSetConfiguration(items: any): void;
|
|
16
16
|
static dispatchSetSysFeatures(items: any): void;
|
|
17
17
|
static dispatchSetJitAppsFeatures(items: any): void;
|