@tc-libs/login-access 3.6.0 → 3.6.1

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.
Files changed (2) hide show
  1. package/README.md +33 -6
  2. package/package.json +10 -10
package/README.md CHANGED
@@ -1,11 +1,38 @@
1
- # login-access
1
+ # @tc-libs/login-access
2
2
 
3
- This library was generated with [Nx](https://nx.dev).
3
+ Storico accessi/login utente.
4
4
 
5
- ## Building
5
+ Il package fornisce:
6
6
 
7
- Run `nx build login-access` to build the library.
7
+ - `LoginAccessModule`
8
+ - `LoginAccessService`
9
+ - entity/repository/controller admin
8
10
 
9
- ## Running unit tests
11
+ ## `LoginAccessService`
10
12
 
11
- Run `nx test login-access` to execute the unit tests via [Jest](https://jestjs.io).
13
+ Estende `AbstractService` e aggiunge:
14
+
15
+ - `anonymizeUser(email, from, to)`
16
+
17
+ Esempio:
18
+
19
+ ```ts
20
+ await this.loginAccessService.anonymizeUser(
21
+ 'user@example.com',
22
+ new Date('2025-01-01'),
23
+ new Date('2025-12-31'),
24
+ );
25
+ ```
26
+
27
+ Nel codice attuale il metodo rimuove i record matching nel range temporale.
28
+
29
+ ## Quando usarlo
30
+
31
+ Utile per audit trail login, backoffice e processi GDPR/retention.
32
+
33
+ ## Sviluppo
34
+
35
+ ```bash
36
+ nx build login-access
37
+ nx test login-access
38
+ ```
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@tc-libs/login-access",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "dependencies": {
5
- "@tc-libs/pagination": "3.6.0",
6
- "@tc-libs/authentication": "3.6.0",
7
- "@tc-libs/request": "3.6.0",
8
- "@tc-libs/response": "3.6.0",
9
- "@tc-libs/doc": "3.6.0",
10
- "@tc-libs/errors": "3.6.0",
11
- "@tc-libs/database": "3.6.0",
12
- "@tc-libs/app-cache": "3.6.0",
13
- "@tc-libs/service": "3.6.0",
5
+ "@tc-libs/pagination": "3.6.1",
6
+ "@tc-libs/authentication": "3.6.1",
7
+ "@tc-libs/request": "3.6.1",
8
+ "@tc-libs/response": "3.6.1",
9
+ "@tc-libs/doc": "3.6.1",
10
+ "@tc-libs/errors": "3.6.1",
11
+ "@tc-libs/database": "3.6.1",
12
+ "@tc-libs/app-cache": "3.6.1",
13
+ "@tc-libs/service": "3.6.1",
14
14
  "@faker-js/faker": "^9.6.0",
15
15
  "@nestjs/common": "^11.0.12",
16
16
  "@nestjs/swagger": "^11.1.0",