@fluxo-dev/api-client-base 0.0.25 → 0.0.26
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 +0 -29
- package/package.json +2 -2
- package/src/index.d.ts +0 -1
- package/src/lib/configuration/configuration.service.d.ts +0 -2
- package/src/lib/fluxo-state-dispatcher.d.ts +0 -1
- package/src/lib/security/security-facade.d.ts +0 -3
- package/src/lib/security/route-rule/index.d.ts +0 -3
- package/src/lib/security/route-rule/route-rule-with-permissions.d.ts +0 -4
- package/src/lib/security/route-rule/route-rule.d.ts +0 -7
- package/src/lib/security/route-rule/route-rule.service.d.ts +0 -10
package/index.cjs.js
CHANGED
|
@@ -1740,9 +1740,6 @@ class FluxoStateDispatcher {
|
|
|
1740
1740
|
static dispatchHasAdminAccess(hasAdminAccess) {
|
|
1741
1741
|
state.store.dispatch(state.setHasAdminAccess(hasAdminAccess));
|
|
1742
1742
|
}
|
|
1743
|
-
static dispatchSetRouteRules(rules) {
|
|
1744
|
-
state.store.dispatch(state.setRouteRules(rules));
|
|
1745
|
-
}
|
|
1746
1743
|
static dispatchSetConfiguration(items) {
|
|
1747
1744
|
state.store.dispatch(state.setConfiguration(items));
|
|
1748
1745
|
}
|
|
@@ -2064,34 +2061,12 @@ class PermissionService {
|
|
|
2064
2061
|
}
|
|
2065
2062
|
}
|
|
2066
2063
|
|
|
2067
|
-
class RouteRuleService extends BaseCommonService {
|
|
2068
|
-
constructor() {
|
|
2069
|
-
super('route-rule');
|
|
2070
|
-
}
|
|
2071
|
-
getRouteRulesForScope(scope, packageName) {
|
|
2072
|
-
return HttpClient.Instance().client.get(`route-rule?scope=${scope}&packageName=${packageName}`);
|
|
2073
|
-
}
|
|
2074
|
-
getPermissions(routeRuleId) {
|
|
2075
|
-
return HttpClient.Instance().client.get(`route-rule/${routeRuleId}/permissions`);
|
|
2076
|
-
}
|
|
2077
|
-
addPermission(routeRuleId, permissionId) {
|
|
2078
|
-
return HttpClient.Instance().client.post(`route-rule/${routeRuleId}/permissions`, {
|
|
2079
|
-
domainRoleId: routeRuleId,
|
|
2080
|
-
permissionId: permissionId
|
|
2081
|
-
});
|
|
2082
|
-
}
|
|
2083
|
-
removePermission(routeRuleId, permissionId) {
|
|
2084
|
-
return HttpClient.Instance().client.delete(`route-rule/${routeRuleId}/permissions/${permissionId}`);
|
|
2085
|
-
}
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
2064
|
class SecurityFacade {
|
|
2089
2065
|
constructor() {
|
|
2090
2066
|
this._userService = new UserService();
|
|
2091
2067
|
this._apiKeyService = new ApiKeyService();
|
|
2092
2068
|
this._domainRoleService = new DomainRoleService();
|
|
2093
2069
|
this._permissionService = new PermissionService();
|
|
2094
|
-
this._routeRuleService = new RouteRuleService();
|
|
2095
2070
|
this._currentUserService = new CurrentUser();
|
|
2096
2071
|
}
|
|
2097
2072
|
get user() {
|
|
@@ -2103,9 +2078,6 @@ class SecurityFacade {
|
|
|
2103
2078
|
get permission() {
|
|
2104
2079
|
return this._permissionService;
|
|
2105
2080
|
}
|
|
2106
|
-
get routeRule() {
|
|
2107
|
-
return this._routeRuleService;
|
|
2108
|
-
}
|
|
2109
2081
|
get apiKey() {
|
|
2110
2082
|
return this._apiKeyService;
|
|
2111
2083
|
}
|
|
@@ -2977,7 +2949,6 @@ exports.MailServerService = MailServerService;
|
|
|
2977
2949
|
exports.PermissionService = PermissionService;
|
|
2978
2950
|
exports.PrintingService = PrintingService;
|
|
2979
2951
|
exports.ReportingService = ReportingService;
|
|
2980
|
-
exports.RouteRuleService = RouteRuleService;
|
|
2981
2952
|
exports.ServerFilterHelper = ServerFilterHelper;
|
|
2982
2953
|
exports.UserService = UserService;
|
|
2983
2954
|
exports.WorkflowService = WorkflowService;
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export * from './lib/security/user';
|
|
|
13
13
|
export * from './lib/security/apikey';
|
|
14
14
|
export * from './lib/security/domain-role';
|
|
15
15
|
export * from './lib/security/permission';
|
|
16
|
-
export * from './lib/security/route-rule';
|
|
17
16
|
export * from './lib/communication';
|
|
18
17
|
export * from './lib/korebi';
|
|
19
18
|
export * from './lib/apps';
|
|
@@ -3,7 +3,6 @@ import { ClientUi } from "./client-ui";
|
|
|
3
3
|
import { FeatureList } from "./models/feature-list";
|
|
4
4
|
import { FluxoApp } from "../apps/models/fluxo-app";
|
|
5
5
|
import { DomainRole } from "../security/domain-role/index";
|
|
6
|
-
import { RouteRuleWithPermissions } from "../security/route-rule/index";
|
|
7
6
|
import { Permission } from "../security/permission/index";
|
|
8
7
|
import { AppMenu } from "./app-menu";
|
|
9
8
|
import { AppMenuCreateCommand } from "./app-menu-create-command";
|
|
@@ -14,7 +13,6 @@ export type InitialConfiguration = {
|
|
|
14
13
|
ui: ClientUi;
|
|
15
14
|
domainRoles: DomainRole[];
|
|
16
15
|
permissions: any[];
|
|
17
|
-
routeRules: RouteRuleWithPermissions[];
|
|
18
16
|
frontends: string[];
|
|
19
17
|
currentFrontend: string;
|
|
20
18
|
isUserLogged: boolean;
|
|
@@ -12,7 +12,6 @@ export declare class FluxoStateDispatcher {
|
|
|
12
12
|
static dispatchSetAppMenu(items: AppMenuItem[]): void;
|
|
13
13
|
static dispatchAllowedFrontends(frontends: string[]): void;
|
|
14
14
|
static dispatchHasAdminAccess(hasAdminAccess: boolean): void;
|
|
15
|
-
static dispatchSetRouteRules(rules: any): void;
|
|
16
15
|
static dispatchSetConfiguration(items: any): void;
|
|
17
16
|
static dispatchSetSysFeatures(items: any): void;
|
|
18
17
|
static dispatchSetJitAppsFeatures(items: any): void;
|
|
@@ -2,7 +2,6 @@ import { UserService } from "./user/user-service";
|
|
|
2
2
|
import { DomainRoleService } from "./domain-role";
|
|
3
3
|
import { ApiKeyService } from "./apikey";
|
|
4
4
|
import { PermissionService } from "./permission/permission.service";
|
|
5
|
-
import { RouteRuleService } from "./route-rule/route-rule.service";
|
|
6
5
|
import { CurrentUser } from "@fluxo-dev/api-client-base";
|
|
7
6
|
export declare class SecurityFacade {
|
|
8
7
|
private readonly _userService;
|
|
@@ -10,12 +9,10 @@ export declare class SecurityFacade {
|
|
|
10
9
|
private readonly _apiKeyService;
|
|
11
10
|
private readonly _domainRoleService;
|
|
12
11
|
private readonly _permissionService;
|
|
13
|
-
private readonly _routeRuleService;
|
|
14
12
|
constructor();
|
|
15
13
|
get user(): UserService;
|
|
16
14
|
get currentUser(): CurrentUser;
|
|
17
15
|
get permission(): PermissionService;
|
|
18
|
-
get routeRule(): RouteRuleService;
|
|
19
16
|
get apiKey(): ApiKeyService;
|
|
20
17
|
get domainRole(): DomainRoleService;
|
|
21
18
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { RouteRule } from "./route-rule";
|
|
2
|
-
import { BaseCommonService } from "../../infrastructure";
|
|
3
|
-
import { Permission } from "../permission";
|
|
4
|
-
export declare class RouteRuleService extends BaseCommonService<RouteRule> {
|
|
5
|
-
constructor();
|
|
6
|
-
getRouteRulesForScope(scope: string, packageName: string): Promise<RouteRule[]>;
|
|
7
|
-
getPermissions(routeRuleId: string): Promise<Permission[]>;
|
|
8
|
-
addPermission(routeRuleId: number, permissionId: number): Promise<void>;
|
|
9
|
-
removePermission(routeRuleId: number, permissionId: number): Promise<void>;
|
|
10
|
-
}
|