@tsi-developpement/tsi-shared-ui 1.8.45 → 1.8.46
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/esm2022/lib/consts/tsi-consts.mjs +4 -1
- package/esm2022/lib/end-points/authorization-endpoints.mjs +4 -2
- package/esm2022/lib/services/authorization/authorization.service.mjs +9 -15
- package/esm2022/lib/services/authorization/identity-manager.service.mjs +9 -11
- package/fesm2022/tsi-developpement-tsi-shared-ui.mjs +23 -24
- package/fesm2022/tsi-developpement-tsi-shared-ui.mjs.map +1 -1
- package/lib/consts/app-providers.d.ts +1 -1
- package/lib/consts/tsi-consts.d.ts +3 -0
- package/lib/end-points/authorization-endpoints.d.ts +3 -1
- package/lib/providers/shared-ui-tsi.provider.d.ts +1 -1
- package/lib/services/authorization/authorization.service.d.ts +5 -8
- package/lib/services/authorization/identity-manager.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -3,4 +3,4 @@ import { FormStateService } from "../services/form/form-state.service";
|
|
|
3
3
|
import { PresentationDesignerBaseService } from "../services/presentation-setting/presentation-designer-base.service";
|
|
4
4
|
import { GenericValidationStateService } from "../services/validation/generic-validation-state.service";
|
|
5
5
|
import { InputRegistryService } from "../services/validation/input-registry.service";
|
|
6
|
-
export declare const appProviders: (typeof GenericValidationStateService | typeof
|
|
6
|
+
export declare const appProviders: (typeof GenericValidationStateService | typeof InputRegistryService | typeof PresentationDesignerBaseService | typeof DynamicFormService | typeof FormStateService)[];
|
|
@@ -19,12 +19,14 @@ export declare const AuthorizationSegments: {
|
|
|
19
19
|
getMyTenants: string;
|
|
20
20
|
deleteUnconfirmedUsers: string;
|
|
21
21
|
refreshToken: string;
|
|
22
|
+
toggleMenuFavorite: string;
|
|
22
23
|
};
|
|
23
24
|
export declare const AuthorizationEndpoints: {
|
|
24
25
|
register: () => string;
|
|
25
26
|
refreshToken: () => string;
|
|
26
27
|
logoutWithToken: () => string;
|
|
27
|
-
getMenuItems: () => string;
|
|
28
|
+
getMenuItems: (favoritesOnly?: boolean) => string;
|
|
29
|
+
toggleMenuFavorite: (menuItemId: string) => string;
|
|
28
30
|
checkPermission: (permission: string) => string;
|
|
29
31
|
getAvailableConnectionStrings: () => string;
|
|
30
32
|
getConnectedUsers: () => string;
|
|
@@ -2,7 +2,7 @@ import { DynamicDialogConfig, DynamicDialogRef } from "primeng/dynamicdialog";
|
|
|
2
2
|
import { TabView } from "primeng/tabview";
|
|
3
3
|
import { JwtHelperService } from "@auth0/angular-jwt";
|
|
4
4
|
import { ConfirmationService, MessageService } from "primeng/api";
|
|
5
|
-
export declare const SharedUiTsiProviders: (typeof
|
|
5
|
+
export declare const SharedUiTsiProviders: (typeof DynamicDialogRef | typeof DynamicDialogConfig | typeof JwtHelperService | typeof TabView | typeof MessageService | typeof ConfirmationService | {
|
|
6
6
|
provide: import("@angular/core").InjectionToken<unknown>;
|
|
7
7
|
useValue: import("@angular/core").InjectionToken<unknown>;
|
|
8
8
|
})[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { EnvironmentInjector } from '@angular/core';
|
|
3
3
|
import { Observable, Subject } from 'rxjs';
|
|
4
|
-
import {
|
|
4
|
+
import { logoutReasonEnum } from '../../enums/logout-reason-enum';
|
|
5
5
|
import { LayoutService } from '../application/app.layout.service';
|
|
6
|
-
import { IdentityPlatformAuthenticationService } from '../UserIdentity/identity-platform-authentication.service';
|
|
7
6
|
import { ModuleCodeService } from '../module-code/module-code.service';
|
|
8
|
-
import {
|
|
7
|
+
import { IdentityPlatformAuthenticationService } from '../UserIdentity/identity-platform-authentication.service';
|
|
8
|
+
import { IdentityManagerService } from './identity-manager.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class AuthorizationService {
|
|
11
11
|
private httpClient;
|
|
@@ -27,15 +27,12 @@ export declare class AuthorizationService {
|
|
|
27
27
|
*/
|
|
28
28
|
runLogoutInterval(): void;
|
|
29
29
|
logout(reason: logoutReasonEnum): Promise<void>;
|
|
30
|
-
getMenuItems(): Observable<any>;
|
|
30
|
+
getMenuItems(favoritesOnly?: boolean): Observable<any>;
|
|
31
|
+
toggleMenuFavorite(menuItemId: string): Observable<any>;
|
|
31
32
|
startRefreshTokenTimer(jwt?: string | undefined): void;
|
|
32
33
|
stopRefreshTokenTimer(): void;
|
|
33
34
|
isAuthenticated(): boolean;
|
|
34
|
-
/**permissions */
|
|
35
35
|
checkPermission(permission: string): Promise<boolean>;
|
|
36
|
-
/**
|
|
37
|
-
* observables
|
|
38
|
-
*/
|
|
39
36
|
getIpAddress(): Observable<{
|
|
40
37
|
ip: string;
|
|
41
38
|
}>;
|
|
@@ -18,6 +18,8 @@ export declare class IdentityManagerService {
|
|
|
18
18
|
private isAuthTokenValid;
|
|
19
19
|
parseAuthToken(token: string | null | undefined): AuthorizationToken | undefined;
|
|
20
20
|
parseMyAuthToken(): AuthorizationToken;
|
|
21
|
+
saveFavoritesOnly(value: boolean): void;
|
|
22
|
+
getFavoritesOnly(): boolean;
|
|
21
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityManagerService, never>;
|
|
22
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<IdentityManagerService>;
|
|
23
25
|
}
|