File tree
8 files changed
+12
-28
lines changed8 files changed
+12
-28
lines changed- package.json+1
- prisma/migrations/20240526040820_initial_schema/migration.sql+17-3
- prisma/schema.prisma+32-16
- src/app/app.constant.ts+3-9
- src/app/app.module.ts+11-9
- src/decorators/auth.decorator.ts
- src/decorators/message.decorator.ts-8
- src/decorators/payload.decorator.ts+12
- src/decorators/public.decorator.ts+2-2
- src/decorators/role.decorator.ts-4
- src/decorators/roles.decorator.ts+5
- src/decorators/serialize.decorator.ts+7
- src/guards/jwt.access.guard.ts+5-5
- src/guards/jwt.refresh.guard.ts
- src/guards/permission.guard.ts+71
- src/i18n/en/translation.json+3-2
- src/interceptors/exception.interceptor.ts+2-7
- src/interceptors/response.interceptor.ts+36-8
- src/modules/auth/auth.module.ts+2-8
- src/modules/auth/controllers/auth.controller.ts+20-6
- src/modules/auth/dtos/auth.response.dto.ts+14
- src/modules/auth/interfaces/auth.interface.ts+11-5
- src/modules/auth/interfaces/auth.service.interface.ts+4-3
- src/modules/auth/services/auth.service.ts+25-8
- src/modules/user/controllers/user.admin.controller.ts+24
- src/modules/user/controllers/user.controller.ts+24-14
- src/modules/user/dtos/generic.response.dto.ts+4
- src/modules/user/dtos/update.user.dto.ts+16-5
- src/modules/user/dtos/user.response.dto.ts+22
- src/modules/user/interfaces/user.service.interface.ts+8-7
- src/modules/user/services/user.service.ts+21-22
- src/modules/user/user.module.ts+2-1
- src/seeders/permissions.ts+66
- src/strategies/jwt.access.strategy.ts+1-1
- src/strategies/jwt.refresh.strategy.ts+1-1
- src/swagger.ts+6
- test/modules/auth/auth.service.spec.ts+3-3
- test/modules/auth/helper.hash.service.spec.ts+1-1
- test/modules/user/user.service.spec.ts+6-20
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
35 | | - | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 33 | | |
41 | 34 | | |
42 | 35 | | |
43 | 36 | | |
44 | 37 | | |
45 | 38 | | |
46 | | - | |
47 | 39 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 40 | | |
52 | | - | |
Submodule files updated from 4bff3a1 to 0ea3649
Submodule notification updated from c82bffb to ec87707
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments