@boarteam/boar-pack-users-backend 4.1.2 → 4.2.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boarteam/boar-pack-users-backend",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "NestJS Users module including permissions system, authentication strategies etc",
|
|
5
5
|
"main": "src/index",
|
|
6
6
|
"files": [
|
|
@@ -22,15 +22,17 @@
|
|
|
22
22
|
"typeorm": "^0.3.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@boarteam/boar-pack-common-backend": "^2.
|
|
25
|
+
"@boarteam/boar-pack-common-backend": "^2.2.0",
|
|
26
26
|
"@casl/ability": "^6.7.0",
|
|
27
27
|
"@nestjs/common": "^9.0.0",
|
|
28
28
|
"@nestjs/config": "^3.2.0",
|
|
29
29
|
"@nestjs/core": "^9.0.0",
|
|
30
30
|
"@nestjs/jwt": "^10.2.0",
|
|
31
31
|
"@nestjs/passport": "^10.0.3",
|
|
32
|
+
"@nestjs/schedule": "^4.1.1",
|
|
32
33
|
"@nestjs/swagger": "^7.3.0",
|
|
33
34
|
"@nestjs/typeorm": "^10.0.2",
|
|
35
|
+
"@nestjsx/crud": "^5.0.0-alpha.3",
|
|
34
36
|
"@nestjsx/crud-typeorm": "^5.0.0-alpha.3",
|
|
35
37
|
"bcrypt": "^5.1.1",
|
|
36
38
|
"joi": "^17.12.2",
|
|
@@ -56,5 +58,5 @@
|
|
|
56
58
|
"yalc:push": "yalc push",
|
|
57
59
|
"gen-types": "JWT_SECRET=swagger nest start"
|
|
58
60
|
},
|
|
59
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "ff8bb25f429f1e0a7d20038c9094e1bed9e37321"
|
|
60
62
|
}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Column,
|
|
3
|
+
CreateDateColumn,
|
|
4
|
+
DeleteDateColumn,
|
|
5
|
+
Entity,
|
|
6
|
+
PrimaryGeneratedColumn,
|
|
7
|
+
Unique,
|
|
8
|
+
UpdateDateColumn,
|
|
9
|
+
} from 'typeorm';
|
|
2
10
|
import { SubjectRawRule } from '@casl/ability';
|
|
3
11
|
import { PackRule } from '@casl/ability/extra';
|
|
4
12
|
import { Action, AppAbility, TSubjectsNames } from '../../casl';
|
|
@@ -49,5 +57,8 @@ export class User {
|
|
|
49
57
|
@UpdateDateColumn({ name: 'updated_at' })
|
|
50
58
|
updatedAt: Date;
|
|
51
59
|
|
|
60
|
+
@DeleteDateColumn()
|
|
61
|
+
deletedAt: Date;
|
|
62
|
+
|
|
52
63
|
policies: PackRule<SubjectRawRule<Action, TSubjectsNames, unknown>>[];
|
|
53
64
|
}
|