@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.
- package/README.md +33 -6
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1,11 +1,38 @@
|
|
|
1
|
-
# login-access
|
|
1
|
+
# @tc-libs/login-access
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Storico accessi/login utente.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Il package fornisce:
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- `LoginAccessModule`
|
|
8
|
+
- `LoginAccessService`
|
|
9
|
+
- entity/repository/controller admin
|
|
8
10
|
|
|
9
|
-
##
|
|
11
|
+
## `LoginAccessService`
|
|
10
12
|
|
|
11
|
-
|
|
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.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@tc-libs/pagination": "3.6.
|
|
6
|
-
"@tc-libs/authentication": "3.6.
|
|
7
|
-
"@tc-libs/request": "3.6.
|
|
8
|
-
"@tc-libs/response": "3.6.
|
|
9
|
-
"@tc-libs/doc": "3.6.
|
|
10
|
-
"@tc-libs/errors": "3.6.
|
|
11
|
-
"@tc-libs/database": "3.6.
|
|
12
|
-
"@tc-libs/app-cache": "3.6.
|
|
13
|
-
"@tc-libs/service": "3.6.
|
|
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",
|