@fluxo-dev/api-client-base 0.0.41 → 0.0.43

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/package.json CHANGED
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "name": "@fluxo-dev/api-client-base",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
- "@fluxo-dev/state": "0.0.41"
6
+ "react": "^18.3.1",
7
+ "@mantine/core": "^7.12.2",
8
+ "react-router-dom": "^6.11.2",
9
+ "react-redux": "^8.0.5",
10
+ "@reduxjs/toolkit": "^1.9.1",
11
+ "@fluxo-dev/state": "^0.0.43"
7
12
  },
8
13
  "main": "./index.cjs.js",
9
14
  "types": "./index.cjs.d.ts"
package/src/index.d.ts CHANGED
@@ -19,3 +19,4 @@ export * from './lib/apps';
19
19
  export * from './lib/utils';
20
20
  export * from './lib/infrastructure';
21
21
  export * from './lib/ravify';
22
+ export * from './lib/bi';
@@ -19,10 +19,11 @@ export declare class EmbeddedModule {
19
19
  getRouteMap(routes?: EmbeddedModuleRoute[] | undefined, parent?: string | undefined): {
20
20
  [id: string]: {
21
21
  title: string | undefined;
22
+ isPublic: boolean | undefined;
22
23
  };
23
24
  };
24
25
  private getFullyQualifiedRoute;
25
- getRouteObject(routes?: EmbeddedModuleRoute[] | undefined): RouteObject[];
26
+ getRouteObject(routes: EmbeddedModuleRoute[] | undefined, routeType: 'protected' | 'public' | 'all'): RouteObject[];
26
27
  getEmbeddedModule(): FluxoEmbeddedModuleConfiguration;
27
28
  }
28
29
  export interface EmbeddedModuleNavigation {
@@ -34,4 +35,5 @@ export interface EmbeddedModuleRoute {
34
35
  component?: any;
35
36
  title?: string;
36
37
  routes?: EmbeddedModuleRoute[];
38
+ isPublic?: boolean;
37
39
  }
@@ -3,7 +3,7 @@ export * from './app-state';
3
3
  export * from './fluxo-app';
4
4
  export * from './fluxo-frontend-app-configuration';
5
5
  export * from './fluxo-app-menu';
6
- export { FluxoEmbeddedModuleConfiguration } from "./fluxo-embedded-module-configuration";
6
+ export { type FluxoEmbeddedModuleConfiguration } from "./fluxo-embedded-module-configuration";
7
7
  export * from "./embedded-module";
8
8
  export * from "./flx-app-routes";
9
9
  export * from "./flx-route";
@@ -0,0 +1,5 @@
1
+ import { BaseCommonService } from "../infrastructure";
2
+ import { DashboardCategory } from "./models/dashboard-category";
3
+ export declare class BiDashboardCategoryService extends BaseCommonService<DashboardCategory> {
4
+ constructor();
5
+ }
@@ -0,0 +1,9 @@
1
+ import { BiService } from "./bi.service";
2
+ import { BiDashboardCategoryService } from "./bi-dashboard-category.service";
3
+ export declare class BiFacade {
4
+ private _biCoreService;
5
+ private _biDashboardCategoryService;
6
+ constructor();
7
+ get core(): BiService;
8
+ get dashboardCategory(): BiDashboardCategoryService;
9
+ }
@@ -0,0 +1,23 @@
1
+ import { DataConnection, DashboardDomainRolesPermission, DashboardInfo } from "./models";
2
+ import { UpdateDashboardInfo } from "./models/update-dashboard-info";
3
+ export declare class BiService {
4
+ deleteDashboard(dashboardId: string): Promise<void>;
5
+ changeVisibility(dashboardId: string, isPublic: boolean): Promise<void>;
6
+ updateRole(dashboardId: string, domainRoleId: number, enabled: boolean): Promise<void>;
7
+ getDashboardInfo(dashboardId: string): Promise<{
8
+ Id: string;
9
+ name: string;
10
+ isPublic: boolean;
11
+ secondsToRefresh: number;
12
+ dashboardCategoryId?: number;
13
+ dashboardCategoryDescription?: string;
14
+ icon?: string;
15
+ }>;
16
+ getDashboardsInfo(): Promise<DashboardInfo[]>;
17
+ updateDashboardInfo(dashboardId: string, command: UpdateDashboardInfo): Promise<void>;
18
+ getDomainRolesPermissions(dashboardId: string): Promise<DashboardDomainRolesPermission[]>;
19
+ getDataConnections(): Promise<DataConnection[]>;
20
+ createDataConnection(data: DataConnection): Promise<void>;
21
+ updateDataConnection(data: DataConnection): Promise<void>;
22
+ deleteDataConnection(id: string): Promise<void>;
23
+ }
@@ -0,0 +1,2 @@
1
+ export * from './bi.facade';
2
+ export * from './models';
@@ -0,0 +1,4 @@
1
+ export interface DashboardCategory {
2
+ id: string;
3
+ description: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface DashboardDomainRolesPermission {
2
+ domainRoleId: number;
3
+ domainRoleName: string;
4
+ enabled: boolean;
5
+ }
@@ -0,0 +1,9 @@
1
+ export interface DashboardInfo {
2
+ id: string;
3
+ name: string;
4
+ isPublic: boolean;
5
+ secondsToRefresh: number;
6
+ dashboardCategoryId?: number;
7
+ dashboardCategoryDescription?: string;
8
+ icon?: string;
9
+ }
@@ -0,0 +1,28 @@
1
+ import { DataSourceType } from "./data-source-type";
2
+ import { SqlDatasourceProvider } from "./sql-datasource-provider";
3
+ import { JsonDataSourceProvider } from "./json-datasource-provider";
4
+ export interface DataConnection {
5
+ id: string;
6
+ type: DataSourceType;
7
+ description: string;
8
+ sqlProvider?: SqlDatasourceProvider;
9
+ sqlServer?: string;
10
+ sqlPassword?: string;
11
+ sqlUser?: string;
12
+ sqlDatabase?: string;
13
+ sqlPort?: string;
14
+ jsonProvider?: JsonDataSourceProvider;
15
+ jsonServiceUri?: string;
16
+ jsonServiceUsername?: string;
17
+ jsonServicePassword?: string;
18
+ jsonServiceHeaderParams?: {
19
+ [key: string]: string;
20
+ };
21
+ jsonServicePathParams?: {
22
+ [key: string]: string;
23
+ };
24
+ jsonServiceQueryParams?: {
25
+ [key: string]: string;
26
+ };
27
+ jsonData?: string;
28
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum DataSourceType {
2
+ Sql = 1,
3
+ Json = 2
4
+ }
@@ -0,0 +1,8 @@
1
+ export { type DashboardDomainRolesPermission } from "./dashboard-domain-roles-permission";
2
+ export { type DataConnection } from "./data-connection";
3
+ export { DataSourceType } from "./data-source-type";
4
+ export { SqlDatasourceProvider } from "./sql-datasource-provider";
5
+ export { JsonDataSourceProvider } from "./json-datasource-provider";
6
+ export { type DashboardInfo } from "./dashboard-info";
7
+ export { type DashboardCategory } from "./dashboard-category";
8
+ export { type UpdateDashboardInfo } from "./update-dashboard-info";
@@ -0,0 +1,4 @@
1
+ export declare enum JsonDataSourceProvider {
2
+ Uri = 1,
3
+ Data = 2
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum SqlDatasourceProvider {
2
+ MsSql = 1,
3
+ MySql = 2,
4
+ Postgres = 3
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface UpdateDashboardInfo {
2
+ categoryId?: number;
3
+ secondsToRefresh: number;
4
+ icon?: string;
5
+ }
@@ -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 { InitialConfiguration } from './configuration.service';
6
+ export { type InitialConfiguration } from './configuration.service';
@@ -2,10 +2,14 @@ import { SecurityFacade } from "./security/security-facade";
2
2
  import { AuthService } from "./auth/auth-service";
3
3
  import { ConfigurationService } from "./configuration/configuration.service";
4
4
  import { KorebiFacade } from "./korebi/korebi-facade";
5
- import { AppService, PrintingService, ReportingService, WorkflowService } from "@fluxo-dev/api-client-base";
6
5
  import { FluxoClientConfiguration } from "@fluxo-dev/state";
7
6
  import { CommunicationFacade } from "./communication";
8
7
  import { RavifyFacade } from "./ravify/ravify.facade";
8
+ import { AppService } from "./apps";
9
+ import { ReportingService } from "./reporting";
10
+ import { PrintingService } from "./printing";
11
+ import { WorkflowService } from "./workflow";
12
+ import { BiFacade } from "./bi";
9
13
  export interface FluxoClientInterface {
10
14
  get clientConfig(): FluxoClientConfiguration;
11
15
  get security(): SecurityFacade;
@@ -18,4 +22,5 @@ export interface FluxoClientInterface {
18
22
  get workflow(): WorkflowService;
19
23
  get communication(): CommunicationFacade;
20
24
  get ravify(): RavifyFacade;
25
+ get bi(): BiFacade;
21
26
  }
@@ -11,6 +11,7 @@ import { WorkflowService } from "./workflow";
11
11
  import { FluxoClientInterface } from "./fluxo-client-interface";
12
12
  import { CommunicationFacade } from "./communication";
13
13
  import { RavifyFacade } from "./ravify/ravify.facade";
14
+ import { BiFacade } from "./bi";
14
15
  export declare abstract class FluxoClientBase implements FluxoClientInterface {
15
16
  get modules(): any[];
16
17
  static get HttpClient(): HttpClient;
@@ -26,6 +27,7 @@ export declare abstract class FluxoClientBase implements FluxoClientInterface {
26
27
  private _communicationFacade;
27
28
  private _config;
28
29
  private _ravify;
30
+ private _biFacade;
29
31
  private _modules;
30
32
  register(module: any): void;
31
33
  protected abstract AddSetupConfiguration(config: FluxoClientConfiguration): void;
@@ -44,5 +46,6 @@ export declare abstract class FluxoClientBase implements FluxoClientInterface {
44
46
  get printing(): PrintingService;
45
47
  get workflow(): WorkflowService;
46
48
  get ravify(): RavifyFacade;
49
+ get bi(): BiFacade;
47
50
  private getBearerToken;
48
51
  }
@@ -4,4 +4,7 @@ export interface RavifyJobUpdateExecutionV1 {
4
4
  priority: number;
5
5
  cronExpression: string;
6
6
  entryFileId: string;
7
+ parameters: {
8
+ [key: string]: string;
9
+ };
7
10
  }
@@ -12,6 +12,12 @@ export interface RavifyJobV1 {
12
12
  reservedAt: string;
13
13
  executionInfo: RavifyJobJobExecutionInfoV1;
14
14
  executionSetup: RavifyJobExecutionSetupV1;
15
+ parameters: {
16
+ [key: string]: {
17
+ value: string;
18
+ sys: boolean;
19
+ };
20
+ };
15
21
  }
16
22
  export interface RavifyJobExecutionSetupV1 {
17
23
  isActive: boolean;