ngx-sp-auth 4.6.10 → 4.6.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.
@@ -1,6 +1,6 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { RetError, RetEstabelecimentosModal, RetString } from 'ngx-sp-infra';
3
+ import { RetError, RetEstabelecimentosModal, RetString, ReturnModel } from 'ngx-sp-infra';
4
4
  import { LibCustomEnvironmentService } from '../../custom/lib-custom-environment.service';
5
5
  import { AuthStorageService } from '../../storage/auth-storage.service';
6
6
  import { RetDynamicMenu } from './model/dynamic-menu';
@@ -11,7 +11,6 @@ import { RetInfraUsuarioEmail } from './model/ret-infrausuarioemail';
11
11
  import { RetInfraUsuarioImg } from './model/ret-infrausuarioimg';
12
12
  import { RetIsMenuAllowed } from './model/ret-is-menu-allowed';
13
13
  import { RetNavSubMenu, RetSubmenuWithCards } from './model/ret-navsubmenu';
14
- import { RetVersion } from './model/ret-version';
15
14
  import { Usuario_IMG } from './model/usuario-img';
16
15
  import * as i0 from "@angular/core";
17
16
  export declare class MenuServicesService {
@@ -20,17 +19,16 @@ export declare class MenuServicesService {
20
19
  private _customEnvironmentService;
21
20
  private readonly _BASE_URL;
22
21
  private readonly _BASE_URL_VERSION_INFRA;
23
- private readonly _BASE_URL_VERSION_CORPORATIVO;
24
22
  private readonly _HTTP_HEADERS;
25
23
  constructor(_authStorageService: AuthStorageService, _httpClient: HttpClient, _customEnvironmentService: LibCustomEnvironmentService);
26
24
  getEstabelecimentosModalList(usuarioID: string, pesquisa: string): Observable<RetEstabelecimentosModal>;
27
25
  getImagemMenu(): Observable<RetInfraUsuarioImg>;
28
26
  getEstabelecimentoSession(estabID: string): Observable<RetEstabelecimentoSession>;
29
27
  getUsuarioEmail(): Observable<RetInfraUsuarioEmail>;
30
- getVersionInfra(): Observable<RetVersion>;
31
- getVersionCorporativo(): Observable<RetVersion>;
32
- getVersionBase(): Observable<any>;
33
- getVersionModulos(): Observable<any>;
28
+ /** Busca a versão base da Infra dentro do mesmo servidor. */
29
+ getVersionBase(): Observable<ReturnModel<string>>;
30
+ /** Busca as versões dos módulos instalados e disponíveis dentro do mesmo servidor. */
31
+ getVersionModulos(): Observable<ReturnModel<any[]>>;
34
32
  /** Método executado para validar a permissão de acesso a uma opção do menu. */
35
33
  isMenuAllowed(route: string): Observable<RetIsMenuAllowed>;
36
34
  updateLastLogEstabID(estabID: string): Observable<RetError>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-sp-auth",
3
- "version": "4.6.10",
3
+ "version": "4.6.11",
4
4
  "description": "Biblioteca de utilitários de autenticação.",
5
5
  "author": "P&D",
6
6
  "keywords": [
@@ -23,7 +23,7 @@
23
23
  "@azure/msal-angular": "^4.0.16",
24
24
  "@azure/msal-browser": "^4.18.0",
25
25
  "idb": "^8.0.3",
26
- "ngx-sp-infra": "^6.9.0",
26
+ "ngx-sp-infra": "^6.11.2",
27
27
  "ngx-toastr": "^19.0.0"
28
28
  },
29
29
  "sideEffects": false,
@@ -1,6 +0,0 @@
1
- import { IError } from 'ngx-sp-infra';
2
- export declare class RetVersion implements IError {
3
- Error: boolean;
4
- ErrorMessage: string;
5
- Version: string;
6
- }