@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
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export interface StartupExceptionContext {
|
|
2
|
-
eventExceptions: EventBuildException[];
|
|
3
|
-
buildExceptions: { [key: string]: CommandBuildException; };
|
|
4
|
-
parseExceptions: CommandParseException[];
|
|
5
|
-
startupExceptionsToString: string;
|
|
6
|
-
containsErrors: boolean;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface EventBuildException {
|
|
10
|
-
exception1: any;
|
|
11
|
-
eventName: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface CommandBuildException {
|
|
15
|
-
props: CommandContextMetadataProperties;
|
|
16
|
-
commandName: string;
|
|
17
|
-
commandConfigurationException: ExceptionDto;
|
|
18
|
-
reAdded: boolean;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface CommandParseException {
|
|
22
|
-
message: string;
|
|
23
|
-
exception: ExceptionDto;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface ExceptionDto {
|
|
27
|
-
message: string;
|
|
28
|
-
stackTrace: string;
|
|
29
|
-
innerExceptionMessage: string;
|
|
30
|
-
innerInnerException: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface CommandContextMetadataProperties {
|
|
34
|
-
commandDescription: string;
|
|
35
|
-
profileName: string;
|
|
36
|
-
originalCommandName: string;
|
|
37
|
-
completeCommandName: string;
|
|
38
|
-
commandType: string;
|
|
39
|
-
configurationType: string;
|
|
40
|
-
commandAlias: string;
|
|
41
|
-
definitionType: string;
|
|
42
|
-
namespace: string;
|
|
43
|
-
containingAssembly: string;
|
|
44
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import {DocumentationService, IntellisenseService} from "./documentation";
|
|
2
|
-
import {AppServiceService} from "./app-service";
|
|
3
|
-
import {DynamicConfigurationService} from "@fluxo-dev/api-client-base";
|
|
4
|
-
|
|
5
|
-
export class KorebiFacade {
|
|
6
|
-
private readonly _documentationService: DocumentationService;
|
|
7
|
-
private readonly _appServiceService: AppServiceService;
|
|
8
|
-
private readonly _dynamicConfigurationService: DynamicConfigurationService;
|
|
9
|
-
private readonly _intellisenseService: IntellisenseService;
|
|
10
|
-
|
|
11
|
-
constructor() {
|
|
12
|
-
this._documentationService = new DocumentationService();
|
|
13
|
-
this._appServiceService = new AppServiceService();
|
|
14
|
-
this._dynamicConfigurationService = new DynamicConfigurationService();
|
|
15
|
-
this._intellisenseService = new IntellisenseService();
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
get documentation(): DocumentationService {
|
|
19
|
-
return this._documentationService;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
get appService(): AppServiceService {
|
|
23
|
-
return this._appServiceService;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
get dynamicConfiguration(): DynamicConfigurationService {
|
|
27
|
-
return this._dynamicConfigurationService;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
get intellisense(): IntellisenseService {
|
|
31
|
-
return this._intellisenseService;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import {PrinterType} from "./printer-type";
|
|
2
|
-
import {PrinterManufacturer} from "./printer-manufacturer";
|
|
3
|
-
|
|
4
|
-
export interface AddPrinterCommand {
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
type: PrinterType;
|
|
8
|
-
manufacturer: PrinterManufacturer;
|
|
9
|
-
ipAddress: string;
|
|
10
|
-
port: number;
|
|
11
|
-
mappedPrinterName: string;
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {PrintServerType} from "./print-server-type";
|
|
2
|
-
import {PrintServerManagedType} from "./print-server-managed-type";
|
|
3
|
-
|
|
4
|
-
export interface CreatePrintServerCommand {
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
type: PrintServerType;
|
|
8
|
-
managedType: PrintServerManagedType;
|
|
9
|
-
ipAddress: string | null;
|
|
10
|
-
port: number;
|
|
11
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {PrintServerType} from "./print-server-type";
|
|
2
|
-
import {PrintServerManagedType} from "./print-server-managed-type";
|
|
3
|
-
import {VirtualPrinter} from "./virtual-printer";
|
|
4
|
-
|
|
5
|
-
export interface VirtualPrintServer {
|
|
6
|
-
id: number;
|
|
7
|
-
name: string;
|
|
8
|
-
description: string;
|
|
9
|
-
type: PrintServerType;
|
|
10
|
-
managedType: PrintServerManagedType;
|
|
11
|
-
printers: VirtualPrinter[];
|
|
12
|
-
ipAddress: string;
|
|
13
|
-
port: number;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {PrinterType} from "./printer-type";
|
|
2
|
-
import {PrinterManufacturer} from "./printer-manufacturer";
|
|
3
|
-
|
|
4
|
-
export interface VirtualPrinter {
|
|
5
|
-
id: number;
|
|
6
|
-
mappedPrinterName: string;
|
|
7
|
-
printServerId: number;
|
|
8
|
-
type: PrinterType;
|
|
9
|
-
description: string;
|
|
10
|
-
name: string;
|
|
11
|
-
manufacturer: PrinterManufacturer | null;
|
|
12
|
-
ipAddress: string | null;
|
|
13
|
-
port: number | null;
|
|
14
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {VirtualPrintServer} from "./models/virtual-print-server";
|
|
2
|
-
import {HttpClient} from "../http-client/http-client";
|
|
3
|
-
import {AddPrinterCommand} from "./models/add-printer-command";
|
|
4
|
-
import {CreatePrintServerCommand} from "./models/create-print-server-command";
|
|
5
|
-
import {UpdatePrintServerCommand} from "./models/update-print-server-command";
|
|
6
|
-
|
|
7
|
-
export class PrintingService {
|
|
8
|
-
|
|
9
|
-
public GetPrintServerList(): Promise<VirtualPrintServer[]> {
|
|
10
|
-
return HttpClient.Instance().client.get(`print-server?includes=Printers`);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
public GetPrintServer(printServerId: number): Promise<VirtualPrintServer> {
|
|
14
|
-
return HttpClient.Instance().client.get(`print-server/${printServerId}`);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
public UpdatePrintServer(printServerId: number, command: UpdatePrintServerCommand) {
|
|
18
|
-
return HttpClient.Instance().client.put(`print-server/${printServerId}`, command);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
public GetPrintServerPrinters(printServerId: number): Promise<string[]> {
|
|
22
|
-
return HttpClient.Instance().client.get(`print-server/${printServerId}/printers`);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
public CreatePrintServer(command: CreatePrintServerCommand) {
|
|
26
|
-
return HttpClient.Instance().client.post(`print-server`, command);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
public AddPrinter(printServerId: number, command: AddPrinterCommand) {
|
|
30
|
-
return HttpClient.Instance().client.post(`print-server/${printServerId}/virtual-printers`, command);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import {ReportsList} from "./models/reports-list";
|
|
2
|
-
import {HttpClient} from "../http-client/http-client";
|
|
3
|
-
import {CreateReportCommand} from "./models/create-report-command";
|
|
4
|
-
import {Report} from "./models/report";
|
|
5
|
-
import {ParametersSchema} from "./models/parameters-schema";
|
|
6
|
-
import {PrintReportCommand} from "./models/print-report-command";
|
|
7
|
-
|
|
8
|
-
export class ReportingService {
|
|
9
|
-
|
|
10
|
-
public getReportsList(scopeFilter?: string): Promise<ReportsList[]> {
|
|
11
|
-
return HttpClient.Instance().client.get(scopeFilter ? `reports/types/list?scopeFilter=${scopeFilter}` : 'reports/types/list');
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
public createReport(command: CreateReportCommand): Promise<number> {
|
|
15
|
-
return HttpClient.Instance().client.post('reports', command);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
public getReportById(id: number): Promise<Report> {
|
|
19
|
-
return HttpClient.Instance().client.get(`reports/${id}`);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
public deleteReport(id: number): Promise<void> {
|
|
23
|
-
return HttpClient.Instance().client.delete(`reports/${id}`);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
public getParametersSchema(fullScope: string): Promise<ParametersSchema> {
|
|
27
|
-
return HttpClient.Instance().client.get(`reports/params/schema/${fullScope}`);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
public print(command: PrintReportCommand): Promise<void> {
|
|
31
|
-
return HttpClient.Instance().client.post('reports/print', command);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from "../../http-client/http-client";
|
|
2
|
-
import { BaseCommonService } from "../../infrastructure/base-common-service";
|
|
3
|
-
import { ApiKey } from "./apikey";
|
|
4
|
-
import { NewApiKey } from "./new-apikey";
|
|
5
|
-
|
|
6
|
-
export class ApiKeyService {
|
|
7
|
-
|
|
8
|
-
constructor() {
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
public getApiKeys(): Promise<ApiKey[]> {
|
|
12
|
-
return HttpClient.Instance().client.get(`/identity/apikey`);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
public create(apiKey: NewApiKey): Promise<string> {
|
|
16
|
-
return HttpClient.Instance().client.post(`/identity/apikey`, apiKey);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
public delete(apiKeyId: number): Promise<void> {
|
|
20
|
-
return HttpClient.Instance().client.delete(`/identity/apikey/${apiKeyId}`);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
public enable(apiKeyId: number): Promise<void> {
|
|
24
|
-
return HttpClient.Instance().client.get(`/identity/apikey/${apiKeyId}/enable`);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
public disable(apiKeyId: number): Promise<void> {
|
|
28
|
-
return HttpClient.Instance().client.get(`/identity/apikey/${apiKeyId}/disable`);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import {DomainRole} from "./domain-role";
|
|
2
|
-
import {BaseCommonService} from "../../infrastructure";
|
|
3
|
-
import {HttpClient} from "../../http-client/http-client";
|
|
4
|
-
import {Permission} from "../permission";
|
|
5
|
-
|
|
6
|
-
export class DomainRoleService extends BaseCommonService<DomainRole> {
|
|
7
|
-
constructor() {
|
|
8
|
-
super('domainroles');
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
public getPermissions(domainRoleId: string): Promise<Permission[]> {
|
|
12
|
-
return HttpClient.Instance().client.get(`domainroles/${domainRoleId}/permissions`);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
public addPermission(domainRoleId: number, permissionId: number): Promise<void> {
|
|
16
|
-
return HttpClient.Instance().client.post(`domainroles/${domainRoleId}/permissions`, {domainRoleId: domainRoleId, permissionId: permissionId});
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
public removePermission(domainRoleId: number, permissionId: number): Promise<void> {
|
|
20
|
-
return HttpClient.Instance().client.delete(`domainroles/${domainRoleId}/permissions/${permissionId}`);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import {InstallPermissionCommand} from "./install-permission-command";
|
|
2
|
-
import {HttpClient} from "../../http-client/http-client";
|
|
3
|
-
import {Permission} from "./permission";
|
|
4
|
-
import {CreatePermissionScopeCommand} from "./create-permission-scope-command";
|
|
5
|
-
import {PermissionScope} from "./permission-scope";
|
|
6
|
-
import {CreateCustomPermissionCommand} from "./create-custom-permission-command";
|
|
7
|
-
|
|
8
|
-
export class PermissionService {
|
|
9
|
-
|
|
10
|
-
public getPermissionScopes(): Promise<PermissionScope[]> {
|
|
11
|
-
return HttpClient.Instance().client.get('identity/permissions/scopes');
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
public getPermissionsInScope(scope: string, packageName: string, namespace: string): Promise<Permission[]> {
|
|
15
|
-
return HttpClient.Instance().client.get(`identity/permissions/${scope}/${packageName}/${namespace}`);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
public createPermissionScope(data: CreatePermissionScopeCommand): Promise<void> {
|
|
19
|
-
return HttpClient.Instance().client.post(`identity/permissions/scopes`, data);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
public deletePermissionScope(scope: string, packageName: string, namespace: string): Promise<void> {
|
|
23
|
-
return HttpClient.Instance().client.delete(`identity/permissions/scopes/${scope}/${packageName}/${namespace}`);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
public installPermissions(data: InstallPermissionCommand): Promise<void> {
|
|
27
|
-
return HttpClient.Instance().client.post('apps/permissions/install', data);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
public createCustomPermission(data: CreateCustomPermissionCommand): Promise<void> {
|
|
31
|
-
return HttpClient.Instance().client.post('identity/permissions/custom', data);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
public deleteCustomPermission(permissionId: number): Promise<void> {
|
|
35
|
-
return HttpClient.Instance().client.delete(`identity/permissions/custom/${permissionId}`);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import {Permission} from "./permission";
|
|
2
|
-
|
|
3
|
-
export interface StructuredPermissions {
|
|
4
|
-
scopes: StructuredPermissionsScope[];
|
|
5
|
-
scopesCount: number;
|
|
6
|
-
packageNamesCount: number;
|
|
7
|
-
permissionsCount: number;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface StructuredPermissionsScope {
|
|
11
|
-
name: string;
|
|
12
|
-
packageNames: StructuredPermissionsPackageName[];
|
|
13
|
-
packageNamesCount: number;
|
|
14
|
-
permissionsCount: number;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface StructuredPermissionsPackageName {
|
|
18
|
-
name: string;
|
|
19
|
-
parentScope: string;
|
|
20
|
-
|
|
21
|
-
permissions: Permission[];
|
|
22
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import {RouteRule} from "./route-rule";
|
|
2
|
-
import {BaseCommonService} from "../../infrastructure";
|
|
3
|
-
import {HttpClient} from "../../http-client/http-client";
|
|
4
|
-
import {Permission} from "../permission";
|
|
5
|
-
|
|
6
|
-
export class RouteRuleService extends BaseCommonService<RouteRule> {
|
|
7
|
-
constructor() {
|
|
8
|
-
super('route-rule');
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
public getRouteRulesForScope(scope: string, packageName: string): Promise<RouteRule[]> {
|
|
12
|
-
return HttpClient.Instance().client.get(`route-rule?scope=${scope}&packageName=${packageName}`);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
public getPermissions(routeRuleId: string): Promise<Permission[]> {
|
|
16
|
-
return HttpClient.Instance().client.get(`route-rule/${routeRuleId}/permissions`);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
public addPermission(routeRuleId: number, permissionId: number): Promise<void> {
|
|
20
|
-
return HttpClient.Instance().client.post(`route-rule/${routeRuleId}/permissions`, {domainRoleId: routeRuleId, permissionId: permissionId});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
public removePermission(routeRuleId: number, permissionId: number): Promise<void> {
|
|
24
|
-
return HttpClient.Instance().client.delete(`route-rule/${routeRuleId}/permissions/${permissionId}`);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { UserService } from "./user/user-service";
|
|
2
|
-
import {DomainRoleService} from "./domain-role";
|
|
3
|
-
import { ApiKeyService } from "./apikey";
|
|
4
|
-
import {PermissionService} from "./permission/permission.service";
|
|
5
|
-
import {RouteRuleService} from "./route-rule/route-rule.service";
|
|
6
|
-
|
|
7
|
-
export class SecurityFacade {
|
|
8
|
-
|
|
9
|
-
private readonly _userService: UserService;
|
|
10
|
-
private readonly _apiKeyService: ApiKeyService;
|
|
11
|
-
private readonly _domainRoleService: DomainRoleService;
|
|
12
|
-
private readonly _permissionService: PermissionService;
|
|
13
|
-
private readonly _routeRuleService: RouteRuleService;
|
|
14
|
-
|
|
15
|
-
constructor() {
|
|
16
|
-
this._userService = new UserService();
|
|
17
|
-
this._apiKeyService = new ApiKeyService();
|
|
18
|
-
this._domainRoleService = new DomainRoleService();
|
|
19
|
-
this._permissionService = new PermissionService();
|
|
20
|
-
this._routeRuleService = new RouteRuleService();
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
get user(): UserService {
|
|
24
|
-
return this._userService;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
get permission(): PermissionService {
|
|
28
|
-
return this._permissionService;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
get routeRule(): RouteRuleService {
|
|
32
|
-
return this._routeRuleService;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
get apiKey(): ApiKeyService {
|
|
36
|
-
return this._apiKeyService;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
get domainRole(): DomainRoleService {
|
|
40
|
-
return this._domainRoleService;
|
|
41
|
-
}
|
|
42
|
-
}
|