@fluxo-dev/api-client-base 0.0.41 → 0.0.42
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 +1061 -572
- package/package.json +7 -2
- package/src/index.d.ts +1 -0
- package/src/lib/apps/models/embedded-module.d.ts +3 -1
- package/src/lib/apps/models/index.d.ts +1 -1
- package/src/lib/bi/bi-dashboard-category.service.d.ts +5 -0
- package/src/lib/bi/bi.facade.d.ts +9 -0
- package/src/lib/bi/bi.service.d.ts +23 -0
- package/src/lib/bi/index.d.ts +2 -0
- package/src/lib/bi/models/dashboard-category.d.ts +4 -0
- package/src/lib/bi/models/dashboard-domain-roles-permission.d.ts +5 -0
- package/src/lib/bi/models/dashboard-info.d.ts +9 -0
- package/src/lib/bi/models/data-connection.d.ts +28 -0
- package/src/lib/bi/models/data-source-type.d.ts +4 -0
- package/src/lib/bi/models/index.d.ts +8 -0
- package/src/lib/bi/models/json-datasource-provider.d.ts +4 -0
- package/src/lib/bi/models/sql-datasource-provider.d.ts +5 -0
- package/src/lib/bi/models/update-dashboard-info.d.ts +5 -0
- package/src/lib/configuration/index.d.ts +1 -1
- package/src/lib/fluxo-client-interface.d.ts +6 -1
- package/src/lib/fluxo-client.d.ts +3 -0
- package/src/lib/ravify/v1/models/ravify-job-update-execution-v1.d.ts +3 -0
- package/src/lib/ravify/v1/models/ravify-job-v1.d.ts +6 -0
package/package.json
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluxo-dev/api-client-base",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.42",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"
|
|
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.42"
|
|
7
12
|
},
|
|
8
13
|
"main": "./index.cjs.js",
|
|
9
14
|
"types": "./index.cjs.d.ts"
|
package/src/index.d.ts
CHANGED
|
@@ -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
|
|
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,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,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,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";
|
|
@@ -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
|
}
|
|
@@ -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;
|