@hedhog/admin 0.0.104 → 0.0.105
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +141 -141
- package/dist/admin.module.js +7 -7
- package/dist/admin.module.js.map +1 -1
- package/dist/auth/auth.service.d.ts +1 -1
- package/dist/auth/auth.service.d.ts.map +1 -1
- package/dist/auth/auth.service.js +8 -8
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/auth/auth.service.spec.js +16 -16
- package/dist/auth/auth.service.spec.js.map +1 -1
- package/dist/dto/with-locale.dto.d.ts +4 -0
- package/dist/dto/with-locale.dto.d.ts.map +1 -0
- package/dist/dto/{with-locales.dto.js → with-locale.dto.js} +5 -5
- package/dist/dto/with-locale.dto.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/locale/locale.controller.js +1 -1
- package/dist/locale/locale.controller.js.map +1 -1
- package/dist/locale/locale.middleware.d.ts +1 -1
- package/dist/locale/locale.middleware.d.ts.map +1 -1
- package/dist/locale/locale.middleware.js +2 -2
- package/dist/locale/locale.middleware.js.map +1 -1
- package/dist/locale/locale.service.d.ts +6 -6
- package/dist/locale/locale.service.d.ts.map +1 -1
- package/dist/locale/locale.service.js +40 -40
- package/dist/locale/locale.service.js.map +1 -1
- package/dist/locale/locale.service.spec.js +14 -14
- package/dist/locale/locale.service.spec.js.map +1 -1
- package/dist/menu/menu.controller.js +3 -3
- package/dist/menu/menu.controller.js.map +1 -1
- package/dist/menu/menu.service.d.ts +3 -3
- package/dist/menu/menu.service.d.ts.map +1 -1
- package/dist/menu/menu.service.js +35 -35
- package/dist/menu/menu.service.js.map +1 -1
- package/dist/menu/menu.service.spec.js +33 -37
- package/dist/menu/menu.service.spec.js.map +1 -1
- package/dist/role/dto/create.dto.d.ts +2 -2
- package/dist/role/dto/create.dto.d.ts.map +1 -1
- package/dist/role/dto/create.dto.js +2 -2
- package/dist/role/dto/create.dto.js.map +1 -1
- package/dist/role/guards/role.guard.js +4 -4
- package/dist/role/guards/role.guard.js.map +1 -1
- package/dist/role/role.controller.js +7 -7
- package/dist/role/role.controller.js.map +1 -1
- package/dist/role/role.service.d.ts +2 -2
- package/dist/role/role.service.d.ts.map +1 -1
- package/dist/role/role.service.js +35 -35
- package/dist/role/role.service.js.map +1 -1
- package/dist/role/role.service.spec.d.ts +0 -1
- package/dist/role/role.service.spec.js +400 -340
- package/dist/role/role.service.spec.js.map +1 -1
- package/dist/route/route.controller.js +3 -3
- package/dist/route/route.controller.js.map +1 -1
- package/dist/route/route.service.d.ts +2 -2
- package/dist/route/route.service.d.ts.map +1 -1
- package/dist/route/route.service.js +18 -18
- package/dist/route/route.service.js.map +1 -1
- package/dist/route/route.service.spec.js +27 -27
- package/dist/route/route.service.spec.js.map +1 -1
- package/dist/screen/screen.controller.js +4 -4
- package/dist/screen/screen.controller.js.map +1 -1
- package/dist/screen/screen.service.d.ts +2 -2
- package/dist/screen/screen.service.d.ts.map +1 -1
- package/dist/screen/screen.service.js +16 -16
- package/dist/screen/screen.service.js.map +1 -1
- package/dist/screen/screen.service.spec.js +16 -16
- package/dist/screen/screen.service.spec.js.map +1 -1
- package/dist/setting/dto/setting.dto.d.ts +9 -0
- package/dist/setting/dto/setting.dto.d.ts.map +1 -0
- package/dist/setting/dto/{settings.dto.js → setting.dto.js} +6 -6
- package/dist/setting/dto/setting.dto.js.map +1 -0
- package/dist/setting/{settings.controller.d.ts → setting.controller.d.ts} +6 -6
- package/dist/setting/setting.controller.d.ts.map +1 -0
- package/dist/setting/{settings.controller.js → setting.controller.js} +20 -20
- package/dist/setting/setting.controller.js.map +1 -0
- package/dist/setting/setting.module.d.ts +3 -0
- package/dist/setting/setting.module.d.ts.map +1 -0
- package/dist/setting/{settings.module.js → setting.module.js} +6 -6
- package/dist/setting/setting.module.js.map +1 -0
- package/dist/setting/{settings.service.d.ts → setting.service.d.ts} +4 -4
- package/dist/setting/setting.service.d.ts.map +1 -0
- package/dist/setting/{settings.service.js → setting.service.js} +42 -42
- package/dist/setting/setting.service.js.map +1 -0
- package/dist/setting/setting.service.spec.d.ts +2 -0
- package/dist/setting/setting.service.spec.d.ts.map +1 -0
- package/dist/setting/{settings.service.spec.js → setting.service.spec.js} +17 -17
- package/dist/setting/setting.service.spec.js.map +1 -0
- package/dist/user/user.controller.js +3 -3
- package/dist/user/user.controller.js.map +1 -1
- package/dist/user/user.service.d.ts +2 -2
- package/dist/user/user.service.d.ts.map +1 -1
- package/dist/user/user.service.js +9 -9
- package/dist/user/user.service.js.map +1 -1
- package/dist/user/user.service.spec.js +24 -24
- package/dist/user/user.service.spec.js.map +1 -1
- package/package.json +2 -2
- package/src/admin.module.ts +36 -0
- package/src/auth/auth.controller.ts +48 -0
- package/src/auth/auth.module.ts +39 -0
- package/src/auth/auth.service.spec.ts +196 -0
- package/src/auth/auth.service.ts +175 -0
- package/src/auth/decorators/public.decorator.ts +4 -0
- package/src/auth/decorators/user.decorator.ts +17 -0
- package/src/auth/dto/forget.dto.ts +6 -0
- package/src/auth/dto/login.dto.ts +15 -0
- package/src/auth/dto/otp.dto.ts +11 -0
- package/src/auth/enums/multifactor-type.enum.ts +4 -0
- package/src/auth/guards/auth.guard.ts +50 -0
- package/src/auth/types/user.type.ts +8 -0
- package/src/dto/delete.dto.ts +8 -0
- package/src/dto/update-ids.dto.ts +9 -0
- package/src/dto/with-locale.dto.ts +8 -0
- package/src/index.ts +34 -0
- package/src/locale/dto/create.dto.ts +12 -0
- package/src/locale/dto/delete.dto.ts +8 -0
- package/src/locale/dto/set-enabled.dto.ts +9 -0
- package/src/locale/dto/update.dto.ts +15 -0
- package/src/locale/index.ts +4 -0
- package/src/locale/locale.controller.ts +79 -0
- package/src/locale/locale.decorator.ts +8 -0
- package/src/locale/locale.middleware.ts +34 -0
- package/src/locale/locale.module.ts +23 -0
- package/src/locale/locale.service.spec.ts +193 -0
- package/src/locale/locale.service.ts +366 -0
- package/src/menu/dto/create.dto.ts +25 -0
- package/src/menu/dto/order.dto.ts +8 -0
- package/src/menu/dto/update.dto.ts +19 -0
- package/src/menu/menu.controller.ts +106 -0
- package/src/menu/menu.module.ts +18 -0
- package/src/menu/menu.service.spec.ts +247 -0
- package/src/menu/menu.service.ts +263 -0
- package/src/role/decorators/role.decorator.ts +4 -0
- package/src/role/dto/create.dto.ts +7 -0
- package/src/role/dto/update.dto.ts +4 -0
- package/src/role/guards/role.guard.ts +122 -0
- package/src/role/role.controller.ts +126 -0
- package/src/role/role.module.ts +28 -0
- package/src/role/role.service.spec.ts +417 -0
- package/src/role/role.service.ts +302 -0
- package/src/route/dto/create.dto.ts +13 -0
- package/src/route/dto/update.dto.ts +15 -0
- package/src/route/route.controller.ts +91 -0
- package/src/route/route.module.ts +18 -0
- package/src/route/route.service.spec.ts +299 -0
- package/src/route/route.service.ts +164 -0
- package/src/screen/dto/create.dto.ts +19 -0
- package/src/screen/dto/update.dto.ts +19 -0
- package/src/screen/screen.controller.ts +93 -0
- package/src/screen/screen.module.ts +18 -0
- package/src/screen/screen.service.spec.ts +298 -0
- package/src/screen/screen.service.ts +181 -0
- package/src/setting/dto/create.dto.ts +1 -0
- package/src/setting/dto/setting-user.dto.ts +6 -0
- package/src/setting/dto/setting.dto.ts +17 -0
- package/src/setting/dto/update.dto.ts +3 -0
- package/src/setting/setting.controller.ts +100 -0
- package/src/setting/setting.module.ts +18 -0
- package/src/setting/setting.service.spec.ts +183 -0
- package/src/setting/setting.service.ts +346 -0
- package/src/types/http-method.ts +8 -0
- package/src/user/constants/user.constants.ts +1 -0
- package/src/user/dto/create.dto.ts +24 -0
- package/src/user/dto/update.dto.ts +41 -0
- package/src/user/user.controller.ts +75 -0
- package/src/user/user.module.ts +18 -0
- package/src/user/user.service.spec.ts +294 -0
- package/src/user/user.service.ts +129 -0
- package/tsconfig.lib.json +9 -0
- package/tsconfig.production.json +20 -0
- package/dist/dto/with-locales.dto.d.ts +0 -4
- package/dist/dto/with-locales.dto.d.ts.map +0 -1
- package/dist/dto/with-locales.dto.js.map +0 -1
- package/dist/setting/dto/settings.dto.d.ts +0 -9
- package/dist/setting/dto/settings.dto.d.ts.map +0 -1
- package/dist/setting/dto/settings.dto.js.map +0 -1
- package/dist/setting/settings.controller.d.ts.map +0 -1
- package/dist/setting/settings.controller.js.map +0 -1
- package/dist/setting/settings.module.d.ts +0 -3
- package/dist/setting/settings.module.d.ts.map +0 -1
- package/dist/setting/settings.module.js.map +0 -1
- package/dist/setting/settings.service.d.ts.map +0 -1
- package/dist/setting/settings.service.js.map +0 -1
- package/dist/setting/settings.service.spec.d.ts +0 -2
- package/dist/setting/settings.service.spec.d.ts.map +0 -1
- package/dist/setting/settings.service.spec.js.map +0 -1
@@ -25,12 +25,12 @@ let RoleService = class RoleService {
|
|
25
25
|
this.localeService = localeService;
|
26
26
|
}
|
27
27
|
async updateUsers(roleId, { ids }) {
|
28
|
-
await this.prismaService.
|
28
|
+
await this.prismaService.role_user.deleteMany({
|
29
29
|
where: {
|
30
30
|
role_id: roleId,
|
31
31
|
},
|
32
32
|
});
|
33
|
-
return this.prismaService.
|
33
|
+
return this.prismaService.role_user.createMany({
|
34
34
|
data: ids.map((userId) => ({
|
35
35
|
role_id: roleId,
|
36
36
|
user_id: userId,
|
@@ -39,12 +39,12 @@ let RoleService = class RoleService {
|
|
39
39
|
});
|
40
40
|
}
|
41
41
|
async updateScreens(roleId, data) {
|
42
|
-
await this.prismaService.
|
42
|
+
await this.prismaService.role_screen.deleteMany({
|
43
43
|
where: {
|
44
44
|
role_id: roleId,
|
45
45
|
},
|
46
46
|
});
|
47
|
-
return this.prismaService.
|
47
|
+
return this.prismaService.role_screen.createMany({
|
48
48
|
data: data.ids.map((screenId) => ({
|
49
49
|
role_id: roleId,
|
50
50
|
screen_id: screenId,
|
@@ -53,12 +53,12 @@ let RoleService = class RoleService {
|
|
53
53
|
});
|
54
54
|
}
|
55
55
|
async updateRoutes(roleId, data) {
|
56
|
-
await this.prismaService.
|
56
|
+
await this.prismaService.role_route.deleteMany({
|
57
57
|
where: {
|
58
58
|
role_id: roleId,
|
59
59
|
},
|
60
60
|
});
|
61
|
-
return this.prismaService.
|
61
|
+
return this.prismaService.role_route.createMany({
|
62
62
|
data: data.ids.map((routeId) => ({
|
63
63
|
role_id: roleId,
|
64
64
|
route_id: routeId,
|
@@ -67,12 +67,12 @@ let RoleService = class RoleService {
|
|
67
67
|
});
|
68
68
|
}
|
69
69
|
async updateMenus(roleId, data) {
|
70
|
-
await this.prismaService.
|
70
|
+
await this.prismaService.role_menu.deleteMany({
|
71
71
|
where: {
|
72
72
|
role_id: roleId,
|
73
73
|
},
|
74
74
|
});
|
75
|
-
return this.prismaService.
|
75
|
+
return this.prismaService.role_menu.createMany({
|
76
76
|
data: data.ids.map((menuId) => ({
|
77
77
|
role_id: roleId,
|
78
78
|
menu_id: menuId,
|
@@ -81,9 +81,9 @@ let RoleService = class RoleService {
|
|
81
81
|
});
|
82
82
|
}
|
83
83
|
async listUsers(roleId, paginationParams) {
|
84
|
-
return this.paginationService.paginate(this.prismaService.
|
84
|
+
return this.paginationService.paginate(this.prismaService.user, paginationParams, {
|
85
85
|
include: {
|
86
|
-
|
86
|
+
role_user: {
|
87
87
|
where: {
|
88
88
|
role_id: roleId,
|
89
89
|
},
|
@@ -96,11 +96,11 @@ let RoleService = class RoleService {
|
|
96
96
|
});
|
97
97
|
}
|
98
98
|
async listMenus(locale, roleId, paginationParams) {
|
99
|
-
return this.paginationService.paginate(this.prismaService.
|
99
|
+
return this.paginationService.paginate(this.prismaService.menu, paginationParams, {
|
100
100
|
include: {
|
101
|
-
|
101
|
+
menu_locale: {
|
102
102
|
where: {
|
103
|
-
|
103
|
+
locale: {
|
104
104
|
code: locale,
|
105
105
|
},
|
106
106
|
},
|
@@ -108,7 +108,7 @@ let RoleService = class RoleService {
|
|
108
108
|
name: true,
|
109
109
|
},
|
110
110
|
},
|
111
|
-
|
111
|
+
role_menu: {
|
112
112
|
where: {
|
113
113
|
role_id: roleId,
|
114
114
|
},
|
@@ -118,12 +118,12 @@ let RoleService = class RoleService {
|
|
118
118
|
},
|
119
119
|
},
|
120
120
|
},
|
121
|
-
}, '
|
121
|
+
}, 'menu_locale');
|
122
122
|
}
|
123
123
|
async listRoutes(roleId, paginationParams) {
|
124
|
-
return this.paginationService.paginate(this.prismaService.
|
124
|
+
return this.paginationService.paginate(this.prismaService.route, paginationParams, {
|
125
125
|
include: {
|
126
|
-
|
126
|
+
role_route: {
|
127
127
|
where: {
|
128
128
|
role_id: roleId,
|
129
129
|
},
|
@@ -136,11 +136,11 @@ let RoleService = class RoleService {
|
|
136
136
|
});
|
137
137
|
}
|
138
138
|
async listScreens(locale, roleId, paginationParams) {
|
139
|
-
return this.paginationService.paginate(this.prismaService.
|
139
|
+
return this.paginationService.paginate(this.prismaService.screen, paginationParams, {
|
140
140
|
include: {
|
141
|
-
|
141
|
+
screen_locale: {
|
142
142
|
where: {
|
143
|
-
|
143
|
+
locale: {
|
144
144
|
code: locale,
|
145
145
|
},
|
146
146
|
},
|
@@ -148,7 +148,7 @@ let RoleService = class RoleService {
|
|
148
148
|
name: true,
|
149
149
|
},
|
150
150
|
},
|
151
|
-
|
151
|
+
role_screen: {
|
152
152
|
where: {
|
153
153
|
role_id: roleId,
|
154
154
|
},
|
@@ -158,19 +158,19 @@ let RoleService = class RoleService {
|
|
158
158
|
},
|
159
159
|
},
|
160
160
|
},
|
161
|
-
}, '
|
161
|
+
}, 'screen_locale');
|
162
162
|
}
|
163
163
|
async getRoles(locale, paginationParams) {
|
164
164
|
const fields = [];
|
165
165
|
const OR = this.prismaService.createInsensitiveSearch(fields, paginationParams);
|
166
|
-
return this.paginationService.paginate(this.prismaService.
|
166
|
+
return this.paginationService.paginate(this.prismaService.role, paginationParams, {
|
167
167
|
where: {
|
168
168
|
OR,
|
169
169
|
},
|
170
170
|
include: {
|
171
|
-
|
171
|
+
role_locale: {
|
172
172
|
where: {
|
173
|
-
|
173
|
+
locale: {
|
174
174
|
code: locale,
|
175
175
|
},
|
176
176
|
},
|
@@ -180,22 +180,22 @@ let RoleService = class RoleService {
|
|
180
180
|
},
|
181
181
|
},
|
182
182
|
},
|
183
|
-
}, '
|
183
|
+
}, 'role_locale');
|
184
184
|
}
|
185
185
|
async get(locale, roleId) {
|
186
|
-
return (0, utils_1.getWithLocale)(locale, '
|
186
|
+
return (0, utils_1.getWithLocale)(locale, 'role_locale', await this.prismaService.role.findUnique({
|
187
187
|
where: { id: roleId },
|
188
188
|
include: {
|
189
|
-
|
189
|
+
role_locale: {
|
190
190
|
where: {
|
191
|
-
|
191
|
+
locale: {
|
192
192
|
enabled: true,
|
193
193
|
},
|
194
194
|
},
|
195
195
|
select: {
|
196
196
|
name: true,
|
197
197
|
description: true,
|
198
|
-
|
198
|
+
locale: {
|
199
199
|
select: {
|
200
200
|
code: true,
|
201
201
|
},
|
@@ -205,17 +205,17 @@ let RoleService = class RoleService {
|
|
205
205
|
},
|
206
206
|
}));
|
207
207
|
}
|
208
|
-
async create({ slug,
|
209
|
-
return this.localeService.
|
208
|
+
async create({ slug, locale }) {
|
209
|
+
return this.localeService.createModelWithLocale('role', 'role_id', { slug }, locale);
|
210
210
|
}
|
211
|
-
async update({ id, data: {
|
212
|
-
return this.localeService.
|
211
|
+
async update({ id, data: { locale, slug }, }) {
|
212
|
+
return this.localeService.updateModelWithLocale('role', 'role_id', id, { slug }, locale);
|
213
213
|
}
|
214
214
|
async delete({ ids }) {
|
215
215
|
if (ids == undefined || ids == null) {
|
216
216
|
throw new common_1.BadRequestException(`You must select at least one permission to delete.`);
|
217
217
|
}
|
218
|
-
return this.prismaService.
|
218
|
+
return this.prismaService.role.deleteMany({
|
219
219
|
where: {
|
220
220
|
id: {
|
221
221
|
in: ids,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"role.service.js","sourceRoot":"","sources":["../../src/role/role.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAsE;AACtE,2CAA+C;AAC/C,yCAA8C;AAC9C,2CAKwB;AAGxB,sCAA0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