@fluxo-dev/api-client-base 0.0.8 → 0.0.11
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.esm.d.ts +1 -0
- package/index.esm.js +21126 -0
- package/package.json +7 -5
- package/src/{index.ts → index.d.ts} +0 -19
- package/src/lib/apps/apps.service.d.ts +11 -0
- package/src/lib/apps/models/app-state.d.ts +4 -0
- package/src/lib/apps/models/app-type.d.ts +4 -0
- package/src/lib/apps/models/embedded-module.d.ts +30 -0
- package/src/lib/apps/models/fluxo-app-menu.d.ts +11 -0
- package/src/lib/apps/models/fluxo-app.d.ts +15 -0
- package/src/lib/apps/models/fluxo-embedded-module-configuration.d.ts +9 -0
- package/src/lib/apps/models/fluxo-frontend-app-configuration.d.ts +10 -0
- package/src/lib/apps/models/flx-app-routes.d.ts +4 -0
- package/src/lib/apps/models/flx-route.d.ts +7 -0
- package/src/lib/apps/models/{index.ts → index.d.ts} +1 -1
- package/src/lib/auth/auth-service.d.ts +9 -0
- package/src/lib/configuration/app-menu-create-command.d.ts +8 -0
- package/src/lib/configuration/app-menu-item.d.ts +14 -0
- package/src/lib/configuration/app-menu.d.ts +14 -0
- package/src/lib/configuration/client-ui.d.ts +5 -0
- package/src/lib/configuration/configuration.service.d.ts +31 -0
- package/src/lib/configuration/models/feature-list.d.ts +6 -0
- package/src/lib/configuration/models/feature.d.ts +11 -0
- package/src/lib/configuration/models/module.d.ts +5 -0
- package/src/lib/constants/local-storage.d.ts +4 -0
- package/src/lib/fluxo-client-base-sys.d.ts +8 -0
- package/src/lib/fluxo-client-interface.d.ts +17 -0
- package/src/lib/fluxo-client.d.ts +42 -0
- package/src/lib/fluxo-state-dispatcher.d.ts +18 -0
- package/src/lib/http-client/http-client.d.ts +10 -0
- package/src/lib/infrastructure/base-common-service.d.ts +15 -0
- package/src/lib/interfaces/crud-service-interface.d.ts +8 -0
- package/src/lib/interfaces/rc-paginated-result.d.ts +6 -0
- package/src/lib/korebi/app-service/app-service.service.d.ts +4 -0
- package/src/lib/korebi/app-service/model/dynamic-api-service.d.ts +13 -0
- package/src/lib/korebi/app-service/model/dynamic-api-services-method.d.ts +8 -0
- package/src/lib/korebi/documentation/documentation.service.d.ts +8 -0
- package/src/lib/korebi/documentation/intellisense.service.d.ts +6 -0
- package/src/lib/korebi/documentation/models/command-input-type.d.ts +10 -0
- package/src/lib/korebi/documentation/models/command-metadata.d.ts +10 -0
- package/src/lib/korebi/documentation/models/command-output-type.d.ts +5 -0
- package/src/lib/korebi/documentation/models/command.d.ts +18 -0
- package/src/lib/korebi/documentation/models/documentation.d.ts +12 -0
- package/src/lib/korebi/documentation/models/korebi-profile.d.ts +4 -0
- package/src/lib/korebi/documentation/models/type-meta-structure.d.ts +11 -0
- package/src/lib/korebi/documentation/models/type-specs.d.ts +5 -0
- package/src/lib/korebi/dynamic-configuration/dynamic-configuration.service.d.ts +7 -0
- package/src/lib/korebi/dynamic-configuration/model/attribute-marker-location.d.ts +7 -0
- package/src/lib/korebi/dynamic-configuration/model/command-json-configuration.d.ts +25 -0
- package/src/lib/korebi/dynamic-configuration/model/instruction-json-configuration.d.ts +19 -0
- package/src/lib/korebi/dynamic-configuration/model/profile-json-configuration.d.ts +5 -0
- package/src/lib/korebi/dynamic-configuration/model/rest-adapter-info.d.ts +9 -0
- package/src/lib/korebi/dynamic-configuration/model/startup-exception-context.d.ts +41 -0
- package/src/lib/korebi/dynamic-configuration/model/tenant-json-configuration.d.ts +5 -0
- package/src/lib/korebi/korebi-facade.d.ts +14 -0
- package/src/lib/modules/fluxo-module.d.ts +6 -0
- package/src/lib/printing/models/add-printer-command.d.ts +11 -0
- package/src/lib/printing/models/create-print-server-command.d.ts +10 -0
- package/src/lib/printing/models/print-server-managed-type.d.ts +4 -0
- package/src/lib/printing/models/print-server-type.d.ts +4 -0
- package/src/lib/printing/models/printer-manufacturer.d.ts +3 -0
- package/src/lib/printing/models/printer-type.d.ts +4 -0
- package/src/lib/printing/models/{update-print-server-command.ts → update-print-server-command.d.ts} +2 -2
- package/src/lib/printing/models/virtual-print-server.d.ts +13 -0
- package/src/lib/printing/models/virtual-printer.d.ts +13 -0
- package/src/lib/printing/printing.service.d.ts +12 -0
- package/src/lib/reporting/models/create-report-command.d.ts +8 -0
- package/src/lib/reporting/models/parameters-schema.d.ts +6 -0
- package/src/lib/reporting/models/print-report-command.d.ts +5 -0
- package/src/lib/reporting/models/report-info.d.ts +5 -0
- package/src/lib/reporting/models/report-parameter.d.ts +6 -0
- package/src/lib/reporting/models/report.d.ts +10 -0
- package/src/lib/reporting/models/reports-list.d.ts +9 -0
- package/src/lib/reporting/reporting.service.d.ts +13 -0
- package/src/lib/security/apikey/apikey-service.d.ts +10 -0
- package/src/lib/security/apikey/apikey.d.ts +7 -0
- package/src/lib/security/apikey/new-apikey.d.ts +4 -0
- package/src/lib/security/domain-role/domain-role.d.ts +7 -0
- package/src/lib/security/domain-role/domain-role.service.d.ts +9 -0
- package/src/lib/security/permission/create-custom-permission-command.d.ts +7 -0
- package/src/lib/security/permission/create-permission-scope-command.d.ts +6 -0
- package/src/lib/security/permission/install-permission-command.d.ts +6 -0
- package/src/lib/security/permission/permission-identifier.d.ts +4 -0
- package/src/lib/security/permission/permission-scope.d.ts +7 -0
- package/src/lib/security/permission/permission.d.ts +9 -0
- package/src/lib/security/permission/permission.service.d.ts +14 -0
- package/src/lib/security/permission/structured-permission.d.ts +18 -0
- package/src/lib/security/route-rule/{route-rule-with-permissions.ts → route-rule-with-permissions.d.ts} +2 -2
- package/src/lib/security/route-rule/route-rule.d.ts +7 -0
- package/src/lib/security/route-rule/route-rule.service.d.ts +10 -0
- package/src/lib/security/security-facade.d.ts +18 -0
- package/src/lib/security/user/{change-password.ts → change-password.d.ts} +1 -1
- package/src/lib/security/user/{forgot-password.ts → forgot-password.d.ts} +1 -1
- package/src/lib/security/user/identityOperationResult.d.ts +8 -0
- package/src/lib/security/user/{new-account-confirmation.ts → new-account-confirmation.d.ts} +1 -1
- package/src/lib/security/user/{new-user.ts → new-user.d.ts} +5 -6
- package/src/lib/security/user/user-service.d.ts +20 -0
- package/src/lib/security/user/{user.ts → user.d.ts} +1 -3
- package/src/lib/utils/server-filter-helper.d.ts +6 -0
- package/src/lib/workflow/models/action-category-definition.d.ts +5 -0
- package/src/lib/workflow/models/action-definition.d.ts +11 -0
- package/src/lib/workflow/models/action-input-definition.d.ts +8 -0
- package/src/lib/workflow/models/{action-output-definition.ts → action-output-definition.d.ts} +2 -2
- package/src/lib/workflow/models/{trigger-category-definition.ts → trigger-category-definition.d.ts} +2 -3
- package/src/lib/workflow/models/trigger-definition.d.ts +10 -0
- package/src/lib/workflow/models/workflow-action-input-type.d.ts +6 -0
- package/src/lib/workflow/models/workflow-action-input.d.ts +5 -0
- package/src/lib/workflow/models/workflow-action.d.ts +16 -0
- package/src/lib/workflow/models/workflow-trigger.d.ts +11 -0
- package/src/lib/workflow/models/workflow.d.ts +9 -0
- package/src/lib/workflow/workflow.service.d.ts +6 -0
- package/.babelrc +0 -12
- package/.eslintrc.json +0 -18
- package/jest.config.ts +0 -11
- package/project.json +0 -43
- package/src/lib/apps/apps.service.ts +0 -46
- package/src/lib/apps/models/app-state.ts +0 -4
- package/src/lib/apps/models/app-type.ts +0 -4
- package/src/lib/apps/models/embedded-module.ts +0 -106
- package/src/lib/apps/models/fluxo-app-menu.ts +0 -12
- package/src/lib/apps/models/fluxo-app.ts +0 -17
- package/src/lib/apps/models/fluxo-embedded-module-configuration.ts +0 -10
- package/src/lib/apps/models/fluxo-frontend-app-configuration.ts +0 -12
- package/src/lib/apps/models/flx-app-routes.ts +0 -5
- package/src/lib/apps/models/flx-route.ts +0 -6
- package/src/lib/auth/auth-service.ts +0 -149
- package/src/lib/configuration/app-menu-create-command.ts +0 -9
- package/src/lib/configuration/app-menu-item.ts +0 -14
- package/src/lib/configuration/app-menu.ts +0 -15
- package/src/lib/configuration/client-ui.ts +0 -5
- package/src/lib/configuration/configuration.service.ts +0 -57
- package/src/lib/configuration/models/feature-list.ts +0 -8
- package/src/lib/configuration/models/feature.ts +0 -11
- package/src/lib/configuration/models/module.ts +0 -5
- package/src/lib/constants/local-storage.ts +0 -4
- package/src/lib/fluxo-client-base-sys.ts +0 -28
- package/src/lib/fluxo-client-interface.ts +0 -27
- package/src/lib/fluxo-client.ts +0 -142
- package/src/lib/fluxo-state-dispatcher.ts +0 -81
- package/src/lib/http-client/http-client.ts +0 -75
- package/src/lib/infrastructure/base-common-service.ts +0 -45
- package/src/lib/interfaces/crud-service-interface.ts +0 -9
- package/src/lib/interfaces/rc-paginated-result.ts +0 -6
- package/src/lib/korebi/app-service/app-service.service.ts +0 -8
- package/src/lib/korebi/app-service/model/dynamic-api-service.ts +0 -15
- package/src/lib/korebi/app-service/model/dynamic-api-services-method.ts +0 -6
- package/src/lib/korebi/documentation/documentation.service.ts +0 -26
- package/src/lib/korebi/documentation/intellisense.service.ts +0 -21
- package/src/lib/korebi/documentation/models/command-input-type.ts +0 -11
- package/src/lib/korebi/documentation/models/command-metadata.ts +0 -10
- package/src/lib/korebi/documentation/models/command-output-type.ts +0 -6
- package/src/lib/korebi/documentation/models/command.ts +0 -19
- package/src/lib/korebi/documentation/models/documentation.ts +0 -13
- package/src/lib/korebi/documentation/models/korebi-profile.ts +0 -5
- package/src/lib/korebi/documentation/models/type-meta-structure.ts +0 -11
- package/src/lib/korebi/documentation/models/type-specs.ts +0 -5
- package/src/lib/korebi/dynamic-configuration/dynamic-configuration.service.ts +0 -17
- package/src/lib/korebi/dynamic-configuration/model/attribute-marker-location.ts +0 -7
- package/src/lib/korebi/dynamic-configuration/model/command-json-configuration.ts +0 -20
- package/src/lib/korebi/dynamic-configuration/model/instruction-json-configuration.ts +0 -19
- package/src/lib/korebi/dynamic-configuration/model/profile-json-configuration.ts +0 -6
- package/src/lib/korebi/dynamic-configuration/model/rest-adapter-info.ts +0 -9
- package/src/lib/korebi/dynamic-configuration/model/startup-exception-context.ts +0 -44
- package/src/lib/korebi/dynamic-configuration/model/tenant-json-configuration.ts +0 -6
- package/src/lib/korebi/korebi-facade.ts +0 -33
- package/src/lib/modules/fluxo-module.ts +0 -13
- package/src/lib/printing/models/add-printer-command.ts +0 -12
- package/src/lib/printing/models/create-print-server-command.ts +0 -11
- package/src/lib/printing/models/print-server-managed-type.ts +0 -4
- package/src/lib/printing/models/print-server-type.ts +0 -4
- package/src/lib/printing/models/printer-manufacturer.ts +0 -3
- package/src/lib/printing/models/printer-type.ts +0 -4
- package/src/lib/printing/models/virtual-print-server.ts +0 -14
- package/src/lib/printing/models/virtual-printer.ts +0 -14
- package/src/lib/printing/printing.service.ts +0 -32
- package/src/lib/reporting/models/create-report-command.ts +0 -8
- package/src/lib/reporting/models/parameters-schema.ts +0 -8
- package/src/lib/reporting/models/print-report-command.ts +0 -5
- package/src/lib/reporting/models/report-info.ts +0 -5
- package/src/lib/reporting/models/report-parameter.ts +0 -6
- package/src/lib/reporting/models/report.ts +0 -10
- package/src/lib/reporting/models/reports-list.ts +0 -10
- package/src/lib/reporting/reporting.service.ts +0 -33
- package/src/lib/security/apikey/apikey-service.ts +0 -30
- package/src/lib/security/apikey/apikey.ts +0 -7
- package/src/lib/security/apikey/new-apikey.ts +0 -4
- package/src/lib/security/domain-role/domain-role.service.ts +0 -22
- package/src/lib/security/domain-role/domain-role.ts +0 -7
- package/src/lib/security/permission/create-custom-permission-command.ts +0 -7
- package/src/lib/security/permission/create-permission-scope-command.ts +0 -6
- package/src/lib/security/permission/install-permission-command.ts +0 -7
- package/src/lib/security/permission/permission-identifier.ts +0 -4
- package/src/lib/security/permission/permission-scope.ts +0 -7
- package/src/lib/security/permission/permission.service.ts +0 -38
- package/src/lib/security/permission/permission.ts +0 -9
- package/src/lib/security/permission/structured-permission.ts +0 -22
- package/src/lib/security/route-rule/route-rule.service.ts +0 -26
- package/src/lib/security/route-rule/route-rule.ts +0 -7
- package/src/lib/security/security-facade.ts +0 -42
- package/src/lib/security/user/identityOperationResult.ts +0 -9
- package/src/lib/security/user/user-service.ts +0 -83
- package/src/lib/utils/server-filter-helper.ts +0 -34
- package/src/lib/workflow/models/action-category-definition.ts +0 -7
- package/src/lib/workflow/models/action-definition.ts +0 -12
- package/src/lib/workflow/models/action-input-definition.ts +0 -8
- package/src/lib/workflow/models/trigger-definition.ts +0 -11
- package/src/lib/workflow/models/workflow-action-input-type.ts +0 -6
- package/src/lib/workflow/models/workflow-action-input.ts +0 -6
- package/src/lib/workflow/models/workflow-action.ts +0 -14
- package/src/lib/workflow/models/workflow-trigger.ts +0 -11
- package/src/lib/workflow/models/workflow.ts +0 -10
- package/src/lib/workflow/workflow.service.ts +0 -17
- package/tsconfig.json +0 -20
- package/tsconfig.lib.json +0 -24
- package/tsconfig.spec.json +0 -20
- /package/src/lib/apps/{index.ts → index.d.ts} +0 -0
- /package/src/lib/configuration/{index.ts → index.d.ts} +0 -0
- /package/src/lib/configuration/models/{index.ts → index.d.ts} +0 -0
- /package/src/lib/infrastructure/{index.ts → index.d.ts} +0 -0
- /package/src/lib/interfaces/{index.ts → index.d.ts} +0 -0
- /package/src/lib/korebi/app-service/{index.ts → index.d.ts} +0 -0
- /package/src/lib/korebi/documentation/{index.ts → index.d.ts} +0 -0
- /package/src/lib/korebi/documentation/models/{index.ts → index.d.ts} +0 -0
- /package/src/lib/korebi/dynamic-configuration/{index.ts → index.d.ts} +0 -0
- /package/src/lib/korebi/{index.ts → index.d.ts} +0 -0
- /package/src/lib/printing/{index.ts → index.d.ts} +0 -0
- /package/src/lib/printing/models/{index.ts → index.d.ts} +0 -0
- /package/src/lib/reporting/{index.ts → index.d.ts} +0 -0
- /package/src/lib/reporting/models/{index.ts → index.d.ts} +0 -0
- /package/src/lib/security/apikey/{index.ts → index.d.ts} +0 -0
- /package/src/lib/security/domain-role/{index.ts → index.d.ts} +0 -0
- /package/src/lib/security/permission/{index.ts → index.d.ts} +0 -0
- /package/src/lib/security/route-rule/{index.ts → index.d.ts} +0 -0
- /package/src/lib/security/user/{index.ts → index.d.ts} +0 -0
- /package/src/lib/utils/{index.ts → index.d.ts} +0 -0
- /package/src/lib/workflow/{index.ts → index.d.ts} +0 -0
- /package/src/lib/workflow/models/{index.ts → index.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluxo-dev/api-client-base",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"type": "
|
|
3
|
+
"version": "0.0.11",
|
|
4
|
+
"type": "module",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@fluxo-dev/state": "
|
|
7
|
-
}
|
|
8
|
-
|
|
6
|
+
"@fluxo-dev/state": "0.0.10"
|
|
7
|
+
},
|
|
8
|
+
"module": "./index.esm.js",
|
|
9
|
+
"main": "./index.esm.js"
|
|
10
|
+
}
|
|
@@ -2,38 +2,19 @@ export * from './lib/fluxo-client';
|
|
|
2
2
|
export * from './lib/fluxo-client-base-sys';
|
|
3
3
|
export * from './lib/fluxo-state-dispatcher';
|
|
4
4
|
export * from './lib/interfaces';
|
|
5
|
-
|
|
6
5
|
export * from './lib/http-client/http-client';
|
|
7
6
|
export * from './lib/fluxo-client-interface';
|
|
8
|
-
|
|
9
|
-
/* Documentation */
|
|
10
7
|
export * from './lib/korebi/documentation';
|
|
11
|
-
|
|
12
|
-
/* Configuration */
|
|
13
8
|
export * from './lib/configuration/index';
|
|
14
|
-
|
|
15
|
-
/* Reporting */
|
|
16
9
|
export * from './lib/reporting/index';
|
|
17
|
-
|
|
18
|
-
/* Printing */
|
|
19
10
|
export * from './lib/printing/index';
|
|
20
|
-
|
|
21
|
-
/* Workflow */
|
|
22
11
|
export * from './lib/workflow/index';
|
|
23
|
-
|
|
24
|
-
/* Security Models */
|
|
25
12
|
export * from './lib/security/user';
|
|
26
13
|
export * from './lib/security/apikey';
|
|
27
14
|
export * from './lib/security/domain-role';
|
|
28
15
|
export * from './lib/security/permission';
|
|
29
16
|
export * from './lib/security/route-rule';
|
|
30
|
-
|
|
31
|
-
/* Korebi */
|
|
32
17
|
export * from './lib/korebi';
|
|
33
|
-
|
|
34
|
-
/* Apps */
|
|
35
18
|
export * from './lib/apps';
|
|
36
|
-
|
|
37
|
-
/* Utils */
|
|
38
19
|
export * from './lib/utils';
|
|
39
20
|
export * from './lib/infrastructure';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FluxoApp } from "./models/fluxo-app";
|
|
2
|
+
import { FluxoEmbeddedModuleConfiguration } from "./models";
|
|
3
|
+
export declare class AppService {
|
|
4
|
+
getApps(onlyDeployed: boolean): Promise<FluxoApp[]>;
|
|
5
|
+
activateApp(appId: number): Promise<any>;
|
|
6
|
+
deactivateApp(appId: number): Promise<any>;
|
|
7
|
+
installApp(data: any): Promise<any>;
|
|
8
|
+
upgradeApp(appId: number, data: any): Promise<any>;
|
|
9
|
+
uninstallApp(appId: number): Promise<any>;
|
|
10
|
+
installEmbeddedModule(data: FluxoEmbeddedModuleConfiguration): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FluxoEmbeddedModuleConfiguration } from "./fluxo-embedded-module-configuration";
|
|
2
|
+
import { RouteObject } from "react-router-dom";
|
|
3
|
+
import { FluxoAppMenu } from "./fluxo-app-menu";
|
|
4
|
+
export declare class EmbeddedModule {
|
|
5
|
+
get name(): string;
|
|
6
|
+
get description(): string;
|
|
7
|
+
get author(): string;
|
|
8
|
+
get version(): string;
|
|
9
|
+
get scope(): string;
|
|
10
|
+
get navigation(): EmbeddedModuleNavigation[];
|
|
11
|
+
private readonly _name;
|
|
12
|
+
private readonly _description;
|
|
13
|
+
private readonly _author;
|
|
14
|
+
private readonly _version;
|
|
15
|
+
private readonly _scope;
|
|
16
|
+
private _navigation;
|
|
17
|
+
constructor(name: string, description: string, author: string, version: string, scope: string);
|
|
18
|
+
attachNavigation(navigationConfig: EmbeddedModuleNavigation): void;
|
|
19
|
+
getRouteObject(routes?: EmbeddedModuleRoute[] | undefined): RouteObject[];
|
|
20
|
+
getEmbeddedModule(): FluxoEmbeddedModuleConfiguration;
|
|
21
|
+
}
|
|
22
|
+
export interface EmbeddedModuleNavigation {
|
|
23
|
+
menu: FluxoAppMenu;
|
|
24
|
+
routes: EmbeddedModuleRoute[];
|
|
25
|
+
}
|
|
26
|
+
export interface EmbeddedModuleRoute {
|
|
27
|
+
route?: string;
|
|
28
|
+
component?: any;
|
|
29
|
+
routes?: EmbeddedModuleRoute[];
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AppType } from "./app-type";
|
|
2
|
+
import { AppState } from "./app-state";
|
|
3
|
+
export interface FluxoApp {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
type: AppType;
|
|
7
|
+
description: string;
|
|
8
|
+
author: string;
|
|
9
|
+
scope: string;
|
|
10
|
+
state: AppState;
|
|
11
|
+
installationDirectory: string;
|
|
12
|
+
installationDate: Date;
|
|
13
|
+
version: string;
|
|
14
|
+
isEmbedded: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FluxoApp } from "./fluxo-app";
|
|
2
|
+
import { FluxoAppMenu } from "./fluxo-app-menu";
|
|
3
|
+
export interface FluxoFrontendAppConfiguration extends FluxoApp {
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
author: string;
|
|
7
|
+
version: string;
|
|
8
|
+
scope: string;
|
|
9
|
+
menu: FluxoAppMenu[];
|
|
10
|
+
}
|
|
@@ -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 { 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
|
+
export declare class AuthService {
|
|
2
|
+
constructor();
|
|
3
|
+
setup(): Promise<void>;
|
|
4
|
+
private tryAutoLogin;
|
|
5
|
+
login(username: string, password: string): Promise<any>;
|
|
6
|
+
logout(): void;
|
|
7
|
+
refreshToken(): Promise<any>;
|
|
8
|
+
static getJwtTokenRemainingLifetime(): number | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface AppMenuItem {
|
|
2
|
+
id?: number;
|
|
3
|
+
routerLink?: string;
|
|
4
|
+
label: string;
|
|
5
|
+
hasIndex?: boolean;
|
|
6
|
+
children?: AppMenuItem[];
|
|
7
|
+
icon?: string;
|
|
8
|
+
featureIdentifier: string;
|
|
9
|
+
isGroup: boolean;
|
|
10
|
+
menuItemId?: number;
|
|
11
|
+
hasPermissions?: boolean;
|
|
12
|
+
permissions?: string[];
|
|
13
|
+
isProtectedByRule?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface AppMenu {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
contextType: AppMenuContextType;
|
|
5
|
+
domainRoleId: number;
|
|
6
|
+
domainRoleName: string;
|
|
7
|
+
userId: string;
|
|
8
|
+
userFullName: string;
|
|
9
|
+
}
|
|
10
|
+
export declare enum AppMenuContextType {
|
|
11
|
+
Default = 0,
|
|
12
|
+
DomainRole = 1,
|
|
13
|
+
User = 2
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AppMenuItem } from "./app-menu-item";
|
|
2
|
+
import { ClientUi } from "./client-ui";
|
|
3
|
+
import { FeatureList } from "./models/feature-list";
|
|
4
|
+
import { FluxoApp } from "../apps/models/fluxo-app";
|
|
5
|
+
import { DomainRole } from "../security/domain-role/index";
|
|
6
|
+
import { RouteRuleWithPermissions } from "../security/route-rule/index";
|
|
7
|
+
import { Permission } from "../security/permission/index";
|
|
8
|
+
import { AppMenu } from "./app-menu";
|
|
9
|
+
import { AppMenuCreateCommand } from "./app-menu-create-command";
|
|
10
|
+
export declare class ConfigurationService {
|
|
11
|
+
getInitialConfiguration(): Promise<{
|
|
12
|
+
apps: FluxoApp[];
|
|
13
|
+
menu: AppMenuItem[];
|
|
14
|
+
features: FeatureList;
|
|
15
|
+
ui: ClientUi;
|
|
16
|
+
domainRoles: DomainRole[];
|
|
17
|
+
permissions: any[];
|
|
18
|
+
routeRules: RouteRuleWithPermissions[];
|
|
19
|
+
isFluxoConfigured: boolean;
|
|
20
|
+
}>;
|
|
21
|
+
getClientUi(): Promise<ClientUi>;
|
|
22
|
+
updateClientUi(clientUI: ClientUi): Promise<ClientUi>;
|
|
23
|
+
getSystemFeatures(): Promise<FeatureList>;
|
|
24
|
+
saveAppMenu(webMenuId: number, menu: AppMenuItem[]): Promise<any>;
|
|
25
|
+
createAppMenu(menu: AppMenuCreateCommand): Promise<any>;
|
|
26
|
+
getAppMenuList(): Promise<AppMenu[]>;
|
|
27
|
+
getAppMenu(webMenuId: number): Promise<AppMenuItem[]>;
|
|
28
|
+
getMenuItemPermissions(domainRoleId: string): Promise<Permission[]>;
|
|
29
|
+
addMenuItemPermission(domainRoleId: number, permissionId: number): Promise<void>;
|
|
30
|
+
removeMenuItemPermission(domainRoleId: number, permissionId: number): Promise<void>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FluxoClientInterface } from "./fluxo-client-interface";
|
|
2
|
+
export declare class FluxoClientSys {
|
|
3
|
+
private static _initialized;
|
|
4
|
+
private static _instance;
|
|
5
|
+
private constructor();
|
|
6
|
+
static Init(instance: FluxoClientInterface): void;
|
|
7
|
+
static get Instance(): FluxoClientInterface;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SecurityFacade } from "./security/security-facade";
|
|
2
|
+
import { AuthService } from "./auth/auth-service";
|
|
3
|
+
import { ConfigurationService } from "./configuration/configuration.service";
|
|
4
|
+
import { KorebiFacade } from "./korebi/korebi-facade";
|
|
5
|
+
import { AppService, PrintingService, ReportingService, WorkflowService } from "@fluxo-dev/api-client-base";
|
|
6
|
+
import { FluxoClientConfiguration } from "@fluxo-dev/state";
|
|
7
|
+
export interface FluxoClientInterface {
|
|
8
|
+
get clientConfig(): FluxoClientConfiguration;
|
|
9
|
+
get security(): SecurityFacade;
|
|
10
|
+
get auth(): AuthService;
|
|
11
|
+
get configuration(): ConfigurationService;
|
|
12
|
+
get korebi(): KorebiFacade;
|
|
13
|
+
get apps(): AppService;
|
|
14
|
+
get reporting(): ReportingService;
|
|
15
|
+
get printing(): PrintingService;
|
|
16
|
+
get workflow(): WorkflowService;
|
|
17
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { HttpClient } from "./http-client/http-client";
|
|
2
|
+
import { AuthService } from "./auth/auth-service";
|
|
3
|
+
import { FluxoClientConfiguration } from "@fluxo-dev/state";
|
|
4
|
+
import { ConfigurationService } from "./configuration/configuration.service";
|
|
5
|
+
import { SecurityFacade } from "./security/security-facade";
|
|
6
|
+
import { KorebiFacade } from "./korebi/korebi-facade";
|
|
7
|
+
import { AppService } from "./apps";
|
|
8
|
+
import { ReportingService } from "./reporting";
|
|
9
|
+
import { PrintingService } from "./printing";
|
|
10
|
+
import { WorkflowService } from "./workflow";
|
|
11
|
+
import { FluxoClientInterface } from "./fluxo-client-interface";
|
|
12
|
+
export declare abstract class FluxoClientBase implements FluxoClientInterface {
|
|
13
|
+
get modules(): any[];
|
|
14
|
+
static get HttpClient(): HttpClient;
|
|
15
|
+
private _authenticationType;
|
|
16
|
+
private _securityFacade;
|
|
17
|
+
private _authService;
|
|
18
|
+
private _configurationService;
|
|
19
|
+
private _korebiFacade;
|
|
20
|
+
private _appsService;
|
|
21
|
+
private _reportingService;
|
|
22
|
+
private _printingService;
|
|
23
|
+
private _workflowService;
|
|
24
|
+
private _config;
|
|
25
|
+
private _modules;
|
|
26
|
+
register(module: any): void;
|
|
27
|
+
protected abstract AddSetupConfiguration(config: FluxoClientConfiguration): void;
|
|
28
|
+
/**
|
|
29
|
+
* Creates an instance of FluxoClient
|
|
30
|
+
*/
|
|
31
|
+
protected setup(config: FluxoClientConfiguration, setState: boolean): Promise<void>;
|
|
32
|
+
get clientConfig(): FluxoClientConfiguration;
|
|
33
|
+
get security(): SecurityFacade;
|
|
34
|
+
get auth(): AuthService;
|
|
35
|
+
get configuration(): ConfigurationService;
|
|
36
|
+
get korebi(): KorebiFacade;
|
|
37
|
+
get apps(): AppService;
|
|
38
|
+
get reporting(): ReportingService;
|
|
39
|
+
get printing(): PrintingService;
|
|
40
|
+
get workflow(): WorkflowService;
|
|
41
|
+
private getBearerToken;
|
|
42
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AppMenuItem } from "./configuration";
|
|
2
|
+
export declare class FluxoStateDispatcher {
|
|
3
|
+
static dispatchUserLogin(data: any): void;
|
|
4
|
+
static dispatchUserLogout(): void;
|
|
5
|
+
static dispatchAutoLoginSucceded(userInfo: any): void;
|
|
6
|
+
static dispatchOpenSearchPanel(): void;
|
|
7
|
+
static dispatchCloseSearchPanel(): void;
|
|
8
|
+
static dispatchSetUserIdle(): void;
|
|
9
|
+
static dispatchUnsetUserIdle(): void;
|
|
10
|
+
static dispatchOpenNavbar(): void;
|
|
11
|
+
static dispatchCloseNavbar(): void;
|
|
12
|
+
static dispatchSetAppMenu(items: AppMenuItem[]): void;
|
|
13
|
+
static dispatchSetRouteRules(rules: any): void;
|
|
14
|
+
static dispatchSetConfiguration(items: any): void;
|
|
15
|
+
static dispatchSetSysFeatures(items: any): void;
|
|
16
|
+
static dispatchSetJitAppsFeatures(items: any): void;
|
|
17
|
+
static dispatchSetUserPermissions(items: any): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AxiosInstance } from "axios";
|
|
2
|
+
import { AuthenticationType } from "@fluxo-dev/state";
|
|
3
|
+
export declare class HttpClient {
|
|
4
|
+
private static _instance;
|
|
5
|
+
private _axiosInstance;
|
|
6
|
+
get client(): AxiosInstance;
|
|
7
|
+
private constructor();
|
|
8
|
+
static Instance(): HttpClient;
|
|
9
|
+
static Init(authenticationType: AuthenticationType, baseUrl: string, apiKeyOrAccessToken: string): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PaginatedResult } from "../interfaces";
|
|
2
|
+
import { CrudServiceInterface } from "../interfaces/crud-service-interface";
|
|
3
|
+
export declare abstract class BaseCommonService<TFind, TCreate = TFind, TCreateOut = TCreate, TUpdate = TCreate, TUpdateOut = TUpdate> implements CrudServiceInterface<TFind, TCreate, TCreateOut, TUpdate, TUpdateOut> {
|
|
4
|
+
protected get baseApiPath(): string;
|
|
5
|
+
private readonly _baseApiPath;
|
|
6
|
+
protected constructor(baseApiPath: string);
|
|
7
|
+
find(take: number, skip: number, filters?: string, include?: string, namedFilters?: {
|
|
8
|
+
key: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}[], orderBy?: string): Promise<PaginatedResult<TFind>>;
|
|
11
|
+
create(entity: TCreate): Promise<TCreateOut>;
|
|
12
|
+
update(id: string, entity: TCreate): Promise<TUpdateOut>;
|
|
13
|
+
delete(entityId: string): Promise<any>;
|
|
14
|
+
get(id: string, include?: string): Promise<TFind>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PaginatedResult } from "./rc-paginated-result";
|
|
2
|
+
export interface CrudServiceInterface<TFind, TCreate = TFind, TCreateOut = TCreate, TUpdate = TCreate, TUpdateOut = TUpdate> {
|
|
3
|
+
find(take: number, skip: number, filters?: string, include?: string): Promise<PaginatedResult<TFind>>;
|
|
4
|
+
create(entity: TCreate): Promise<TCreateOut>;
|
|
5
|
+
update(id: string, entity: TCreate): Promise<TUpdateOut>;
|
|
6
|
+
get(id: string): Promise<TFind>;
|
|
7
|
+
delete(id: string): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DynamicApiServicesMethod } from "./dynamic-api-services-method";
|
|
2
|
+
export interface DynamicApiService {
|
|
3
|
+
name: string;
|
|
4
|
+
typeName: string;
|
|
5
|
+
functionsWithNoParameters: DynamicApiServicesMethod[];
|
|
6
|
+
functionsWith1Parameters: DynamicApiServicesMethod[];
|
|
7
|
+
functionsWith2Parameters: DynamicApiServicesMethod[];
|
|
8
|
+
functionsWith3Parameters: DynamicApiServicesMethod[];
|
|
9
|
+
actionsWithNoParameters: DynamicApiServicesMethod[];
|
|
10
|
+
actionsWith1Parameters: DynamicApiServicesMethod[];
|
|
11
|
+
actionsWith2Parameters: DynamicApiServicesMethod[];
|
|
12
|
+
actionsWith3Parameters: DynamicApiServicesMethod[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Documentation } from "./models";
|
|
2
|
+
import { TypeSpecs } from "./models/type-specs";
|
|
3
|
+
export declare class DocumentationService {
|
|
4
|
+
getRestApiDocumentation(): Promise<Documentation>;
|
|
5
|
+
getTypeSchema(typeFullyQualifiedName: string): Promise<any>;
|
|
6
|
+
searchType(typeName: string): Promise<TypeSpecs[]>;
|
|
7
|
+
getTypeNameFromFullName: (typeFullName: string) => string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare class IntellisenseService {
|
|
2
|
+
complete(payload: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
3
|
+
signature(payload: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
+
hover(payload: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
+
codeCheck(payload: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TypeMetaStructure } from './type-meta-structure';
|
|
2
|
+
export interface CommandInputType {
|
|
3
|
+
name: string;
|
|
4
|
+
documentation: string;
|
|
5
|
+
location: 'PATH' | 'QUERY' | 'BODY' | 'HEADER';
|
|
6
|
+
required: boolean;
|
|
7
|
+
indeterminateAssociationQueryParam: boolean;
|
|
8
|
+
indeterminateAssociationCommandInput: boolean;
|
|
9
|
+
typeMetaStructure: TypeMetaStructure;
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CommandMetadata } from './command-metadata';
|
|
2
|
+
import { CommandInputType } from './command-input-type';
|
|
3
|
+
import { CommandOutputType } from './command-output-type';
|
|
4
|
+
export interface Command {
|
|
5
|
+
deprecationInfo: string;
|
|
6
|
+
commandCompleteName: string;
|
|
7
|
+
commandName: string;
|
|
8
|
+
profile: string;
|
|
9
|
+
commandDocumentation: string;
|
|
10
|
+
uri: string;
|
|
11
|
+
urlTemplate: string;
|
|
12
|
+
httpMethod: string;
|
|
13
|
+
requiredPermissionType: 'Autenticated' | 'Anonymous';
|
|
14
|
+
configurationType: 'imperative' | 'declarative' | 'dynamic';
|
|
15
|
+
inputTypes: CommandInputType[];
|
|
16
|
+
outputTypes: CommandOutputType[];
|
|
17
|
+
metadata: CommandMetadata;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { KorebiProfile } from "./korebi-profile";
|
|
2
|
+
export interface Documentation {
|
|
3
|
+
apiTitle: string;
|
|
4
|
+
apiDescription: string;
|
|
5
|
+
apiDefaultAuthSchema: string;
|
|
6
|
+
apiContextPath: string;
|
|
7
|
+
javascriptServerExecutorEndpointPath: string;
|
|
8
|
+
multiCommandExecutorEndpointPath: string;
|
|
9
|
+
korebiVersion: string;
|
|
10
|
+
workerCommands: KorebiProfile;
|
|
11
|
+
restCommands: KorebiProfile;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface TypeMetaStructure {
|
|
2
|
+
dictionaryKeyTypeName: string;
|
|
3
|
+
enumValues: string;
|
|
4
|
+
error: string;
|
|
5
|
+
typeName: string;
|
|
6
|
+
isReference: boolean;
|
|
7
|
+
isArray: boolean;
|
|
8
|
+
isArrayOfBaseType: boolean;
|
|
9
|
+
typeFullyQualifiedName: string;
|
|
10
|
+
isBaseType: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TenantJsonConfiguration } from "./model/tenant-json-configuration";
|
|
2
|
+
import { StartupExceptionContext } from "./model/startup-exception-context";
|
|
3
|
+
export declare class DynamicConfigurationService {
|
|
4
|
+
getDynamicConfiguration(): Promise<TenantJsonConfiguration>;
|
|
5
|
+
simulateDynamicConfiguration(tenantJsonConfiguration: TenantJsonConfiguration): Promise<StartupExceptionContext>;
|
|
6
|
+
deployDynamicConfiguration(tenantJsonConfiguration: TenantJsonConfiguration): Promise<TenantJsonConfiguration>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AttributeMarkerLocation } from "./attribute-marker-location";
|
|
2
|
+
import { RestAdapterInfo } from "./rest-adapter-info";
|
|
3
|
+
import { InstructionJsonConfiguration } from "./instruction-json-configuration";
|
|
4
|
+
export interface CommandJsonConfiguration {
|
|
5
|
+
commandAlias: string;
|
|
6
|
+
name: string;
|
|
7
|
+
documentation: string;
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
avoidTraceEveryResult: boolean;
|
|
10
|
+
continueOnError: boolean;
|
|
11
|
+
mainInstruction?: InstructionJsonConfiguration;
|
|
12
|
+
otherInstructions?: InstructionJsonConfiguration[];
|
|
13
|
+
commandMetadata?: {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
commandOutputMetadata?: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
};
|
|
19
|
+
commandConstants?: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
};
|
|
22
|
+
inputTypes?: string[];
|
|
23
|
+
restAdapterInfo?: RestAdapterInfo;
|
|
24
|
+
attributeMarkerLocation?: AttributeMarkerLocation;
|
|
25
|
+
}
|