ngx-sp-auth 4.22.4 → 4.22.5
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.
|
@@ -84,7 +84,7 @@ export declare class MenuLateralComponent implements OnInit, OnDestroy {
|
|
|
84
84
|
private checkForCachedImage;
|
|
85
85
|
logout(): void;
|
|
86
86
|
getExternalUrl(url: string, isOutroModulo: boolean): string;
|
|
87
|
-
constroiRegrasDynamicMenu(menus: DynamicMenu[]): DynamicMenu[]
|
|
87
|
+
constroiRegrasDynamicMenu(menus: DynamicMenu[]): Promise<DynamicMenu[]>;
|
|
88
88
|
deleteIDB(): Promise<void>;
|
|
89
89
|
private configMsal;
|
|
90
90
|
private initMsal;
|
|
@@ -53,6 +53,16 @@ export declare class MenuServicesService {
|
|
|
53
53
|
getProjects(): Observable<RetDropDown>;
|
|
54
54
|
/** Método executado para pegar o HostName de direcionamento para OS. */
|
|
55
55
|
GetHostServerOutSystems(): Observable<RetString>;
|
|
56
|
+
/**
|
|
57
|
+
* **ESTE MÉTODO FOI DUPLICADO DO MÉTODO `GetHostServerOutSystems` PARA SER UTILIZADO DE FORMA ASSÍNCRONA, SEM *OBSERVABLE*, PARA EVITAR PROBLEMAS DE SINCRONIA NA CONSTRUÇÃO DO MENU DINÂMICO.**
|
|
58
|
+
*
|
|
59
|
+
* Método async executado para pegar o HostName de direcionamento para OS de forma estática, sem Observable.
|
|
60
|
+
* Este método utiliza a função `firstValueFrom` do RxJS para converter o Observable retornado pelo HttpClient em uma Promise.
|
|
61
|
+
*
|
|
62
|
+
* @returns Promise<RetString> - Retorna uma Promise que resolve para um objeto RetString contendo o HostName de direcionamento para OS.
|
|
63
|
+
* @throws Error - Lança um erro se a resposta da API contiver um erro.
|
|
64
|
+
*/
|
|
65
|
+
getHostServerOutSystemsStatic(): Promise<RetString>;
|
|
56
66
|
private _menuFooterImg;
|
|
57
67
|
getMenuFooterImg(): Usuario_IMG | null;
|
|
58
68
|
setMenuFooterImg(value: Usuario_IMG): void;
|