ngx-sp-auth 0.0.0-watch → 1.0.2

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,9 +1,9 @@
1
1
  export declare class InfraUsuarioImg {
2
- TENANT_ID: number;
3
- ID: number;
4
- IMAGEM: string;
5
- FILENAME: string;
6
- DATACRIACAO: Date;
7
- IS_ACTIVE: boolean;
8
- USUARIOID: string;
2
+ Tenant_Id: number;
3
+ Id: number;
4
+ Imagem: string;
5
+ FileName: string;
6
+ DataCriacao: Date;
7
+ Is_Active: boolean;
8
+ UsuarioId: string;
9
9
  }
@@ -0,0 +1,19 @@
1
+ import { ICustomStorageService } from './models/icustom-storage-service';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LibCustomStorageService {
4
+ constructor();
5
+ private __isSaving;
6
+ storedStorageConstructor(): void;
7
+ storedStorageSaveLocalInstance(): void;
8
+ storedStorageLogout(): void;
9
+ storedStorageInitializeAutoStorage(): void;
10
+ storageConstructor(): void;
11
+ storageSaveLocalInstance(): void;
12
+ storageLogout(): void;
13
+ storageInitializeAutoStorage(): void;
14
+ private __authStorageSaveLocalInstance;
15
+ private __authStorageNotSaving;
16
+ ConfigurarCustomStorage(customStorageService: ICustomStorageService): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibCustomStorageService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<LibCustomStorageService>;
19
+ }
@@ -0,0 +1,7 @@
1
+ export interface ICustomStorageService {
2
+ isSaving: boolean;
3
+ storageConstructor(): void;
4
+ storageSaveLocalInstance(): void;
5
+ storageLogout(): void;
6
+ storageInitializeAutoStorage(): void;
7
+ }
@@ -1,9 +1,11 @@
1
1
  import { HttpBackend } from '@angular/common/http';
2
2
  import { Payload } from './../models/payload';
3
3
  import { BehaviorSubject } from 'rxjs';
4
+ import { LibCustomStorageService } from '../custom/custom-storage.service';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class AuthStorageService {
6
7
  private _httpBackend;
8
+ private _customStorageService;
7
9
  private readonly _HOSTNAME;
8
10
  private readonly _BASE_URL;
9
11
  private readonly __local_key;
@@ -11,7 +13,7 @@ export declare class AuthStorageService {
11
13
  /** Se ainda estamos com uma função rodando para verificar o login do usuário */
12
14
  private __isCheckingAuth;
13
15
  private _httpClient;
14
- constructor(_httpBackend: HttpBackend);
16
+ constructor(_httpBackend: HttpBackend, _customStorageService: LibCustomStorageService);
15
17
  isLoggedInSub: BehaviorSubject<boolean>;
16
18
  private __ip;
17
19
  get ip(): string;
@@ -79,12 +81,6 @@ export declare class AuthStorageService {
79
81
  */
80
82
  renewToken(): Promise<void>;
81
83
  private isPrePortal;
82
- storageConstructor(callback?: () => void): void;
83
- storageSaveLocalInstance(callback?: () => void): void;
84
- storageLogout(callback?: () => void): void;
85
- storageInitializeAutoStorage(callback?: () => void): void;
86
- private __authStorageSaveLocalInstance;
87
- private __authStorageNotSaving;
88
84
  static ɵfac: i0.ɵɵFactoryDeclaration<AuthStorageService, never>;
89
85
  static ɵprov: i0.ɵɵInjectableDeclaration<AuthStorageService>;
90
86
  }
package/package.json CHANGED
@@ -1,6 +1,24 @@
1
1
  {
2
2
  "name": "ngx-sp-auth",
3
- "version": "0.0.0-watch+1740596988680",
3
+ "version": "1.0.2",
4
+ "description": "Biblioteca de utilitários da Infra.",
5
+ "author": "P&D",
6
+ "keywords": [
7
+ "Infra",
8
+ "Sispro",
9
+ "Utilitários",
10
+ "P&D",
11
+ "angular",
12
+ "typescript",
13
+ "bootstrap"
14
+ ],
15
+ "bugs": {
16
+ "email": "sispropesqdesenv@sispro.com.br"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/SISPROV6/infra-code-libs"
21
+ },
4
22
  "peerDependencies": {
5
23
  "ngx-sp-infra": "^3.13.3-next",
6
24
  "ngx-toastr": "^19.0.0"
package/public-api.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from './lib/components/menu-lateral/menu-services.service';
5
5
  export * from './lib/components/menu-lateral/menu/list-estab.service';
6
6
  export * from './lib/custom/custom-login.service';
7
7
  export * from './lib/custom/custom-menu.service';
8
+ export * from './lib/custom/custom-storage.service';
8
9
  export * from './lib/custom/menu-config.service';
9
10
  export * from './lib/environments/environments.service';
10
11
  export * from './lib/server/server.service';
@@ -27,6 +28,7 @@ export * from './lib/custom/models/icustom-menu-service';
27
28
  export * from './lib/custom/models/imenu-config';
28
29
  export * from './lib/environments/models/ienvironments';
29
30
  export * from './lib/models/custom-propriedades-login';
31
+ export * from './lib/custom/models/icustom-storage-service';
30
32
  /** Guards */
31
33
  export * from './lib/guards/auth-guard';
32
34
  export * from './lib/guards/external-login-guard';
File without changes