@fluxo-dev/api-client-base 0.0.50 → 0.0.52

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
@@ -2838,6 +2838,9 @@ class FluxoStateDispatcher {
2838
2838
  static dispatchSetConfiguration(items) {
2839
2839
  state.store.dispatch(state.setConfiguration(items));
2840
2840
  }
2841
+ static dispatchSetSystemSettings(items) {
2842
+ state.store.dispatch(state.setSystemSettings(items));
2843
+ }
2841
2844
  static dispatchSetSysFeatures(items) {
2842
2845
  state.store.dispatch(state.setSysFeatures(items));
2843
2846
  }
@@ -2979,6 +2982,11 @@ class RefreshTokenManager {
2979
2982
  }
2980
2983
  }
2981
2984
 
2985
+ exports.FluxoACLMode = void 0;
2986
+ (function (FluxoACLMode) {
2987
+ FluxoACLMode[FluxoACLMode["DomainRole"] = 1] = "DomainRole";
2988
+ FluxoACLMode[FluxoACLMode["Permission"] = 2] = "Permission";
2989
+ })(exports.FluxoACLMode || (exports.FluxoACLMode = {}));
2982
2990
  class ConfigurationService {
2983
2991
  getInitialConfiguration() {
2984
2992
  return HttpClient.Instance().client.get(`client/initial`);
@@ -3042,6 +3050,9 @@ class UserService {
3042
3050
  getAllUsers() {
3043
3051
  return HttpClient.Instance().client.get(`/identity/user`);
3044
3052
  }
3053
+ getAllExternalUsers() {
3054
+ return HttpClient.Instance().client.get(`/identity/external-user`);
3055
+ }
3045
3056
  createUser(user) {
3046
3057
  return HttpClient.Instance().client.post(`/identity/user`, user);
3047
3058
  }
@@ -4298,6 +4309,9 @@ class BiService {
4298
4309
  deleteDataConnection(id) {
4299
4310
  return HttpClient.Instance().client.delete(`bi/data-connection/${id}`);
4300
4311
  }
4312
+ testDataConnection(dataConnection) {
4313
+ return HttpClient.Instance().client.post(`bi/data-connection/test`, dataConnection);
4314
+ }
4301
4315
  }
4302
4316
 
4303
4317
  class BiDashboardCategoryService extends BaseCommonService {
@@ -4632,6 +4646,7 @@ class CurrentUser {
4632
4646
  getUserInfo() {
4633
4647
  const user = state.store.getState().user;
4634
4648
  return {
4649
+ id: user.userInfo.FirstName,
4635
4650
  name: user.userInfo.FirstName,
4636
4651
  lastname: user.userInfo.LastName
4637
4652
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluxo-dev/api-client-base",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
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.50"
11
+ "@fluxo-dev/state": "^0.0.52"
12
12
  },
13
13
  "main": "./index.cjs.js",
14
14
  "types": "./index.cjs.d.ts"
@@ -11,6 +11,7 @@ export declare class BiService {
11
11
  secondsToRefresh: number;
12
12
  dashboardCategoryId?: number;
13
13
  dashboardCategoryDescription?: string;
14
+ alias?: string;
14
15
  icon?: string;
15
16
  }>;
16
17
  getDashboardsInfo(): Promise<DashboardInfo[]>;
@@ -20,4 +21,5 @@ export declare class BiService {
20
21
  createDataConnection(data: DataConnection): Promise<void>;
21
22
  updateDataConnection(data: DataConnection): Promise<void>;
22
23
  deleteDataConnection(id: string): Promise<void>;
24
+ testDataConnection(dataConnection: DataConnection): Promise<void>;
23
25
  }
@@ -6,4 +6,5 @@ export interface DashboardInfo {
6
6
  dashboardCategoryId?: number;
7
7
  dashboardCategoryDescription?: string;
8
8
  icon?: string;
9
+ alias?: string;
9
10
  }
@@ -11,6 +11,10 @@ export interface DataConnection {
11
11
  sqlUser?: string;
12
12
  sqlDatabase?: string;
13
13
  sqlPort?: string;
14
+ sqlTrustServerCertificate: boolean;
15
+ sqlCharSet?: string;
16
+ sqlEncoding?: string;
17
+ sqlPersistSecurityInfo: boolean;
14
18
  jsonProvider?: JsonDataSourceProvider;
15
19
  jsonServiceUri?: string;
16
20
  jsonServiceUsername?: string;
@@ -2,4 +2,5 @@ export interface UpdateDashboardInfo {
2
2
  categoryId?: number;
3
3
  secondsToRefresh: number;
4
4
  icon?: string;
5
+ alias?: string;
5
6
  }
@@ -19,7 +19,16 @@ export type InitialConfiguration = {
19
19
  hasAdminAccess: boolean;
20
20
  hasDeveloperAccess: boolean;
21
21
  hasDataAnalystAccess: boolean;
22
+ systemSettings: SystemSettings;
22
23
  };
24
+ export type SystemSettings = {
25
+ aclMode: FluxoACLMode;
26
+ allowExternalUsers: boolean;
27
+ };
28
+ export declare enum FluxoACLMode {
29
+ DomainRole = 1,
30
+ Permission = 2
31
+ }
23
32
  export declare class ConfigurationService {
24
33
  getInitialConfiguration(): Promise<InitialConfiguration>;
25
34
  deleteWebMenu(webMenuId: number): Promise<any>;
@@ -3,4 +3,4 @@ export * from './client-ui';
3
3
  export * from './models';
4
4
  export * from './app-menu';
5
5
  export * from './app-menu-create-command';
6
- export { type InitialConfiguration } from './configuration.service';
6
+ export { type InitialConfiguration, FluxoACLMode, type SystemSettings } from './configuration.service';
@@ -13,6 +13,7 @@ export declare class FluxoStateDispatcher {
13
13
  static dispatchAllowedFrontends(frontends: string[]): void;
14
14
  static dispatchSysRoleAccess(hasAdminAccess: boolean, hasDeveloperAccess: boolean, hasDataAnalystAccess: boolean): void;
15
15
  static dispatchSetConfiguration(items: any): void;
16
+ static dispatchSetSystemSettings(items: any): void;
16
17
  static dispatchSetSysFeatures(items: any): void;
17
18
  static dispatchSetJitAppsFeatures(items: any): void;
18
19
  static dispatchSetUserPermissions(items: any): void;
@@ -20,6 +21,7 @@ export declare class FluxoStateDispatcher {
20
21
  static dispatchSetFrontends(frontends: {
21
22
  id: string;
22
23
  name: string;
24
+ external: boolean;
23
25
  }[]): void;
24
26
  static dispatchSetCurrentFrontend(frontend: string): void;
25
27
  static dispatchSetSessionMode(mode: 'single-session' | 'multi-session'): void;
@@ -4,4 +4,5 @@ export interface DomainRole {
4
4
  name: string;
5
5
  description?: string;
6
6
  permissionCount?: number;
7
+ external?: boolean;
7
8
  }
@@ -1,6 +1,7 @@
1
1
  import { DomainRole } from "../domain-role";
2
2
  export declare class CurrentUser {
3
3
  getUserInfo(): {
4
+ id: string;
4
5
  name: string;
5
6
  lastname: string;
6
7
  };
@@ -7,6 +7,7 @@ import { User } from "./user";
7
7
  export declare class UserService {
8
8
  constructor();
9
9
  getAllUsers(): Promise<User[]>;
10
+ getAllExternalUsers(): Promise<User[]>;
10
11
  createUser(user: NewUser): Promise<IdentityOperationResult>;
11
12
  updateUser(userId: string, user: NewUser): Promise<IdentityOperationResult>;
12
13
  deleteUser(userId: string): Promise<IdentityOperationResult>;