@hedhog/admin 0.0.103 → 0.0.105

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. package/README.md +141 -141
  2. package/dist/admin.module.js +7 -7
  3. package/dist/admin.module.js.map +1 -1
  4. package/dist/auth/auth.service.d.ts +1 -1
  5. package/dist/auth/auth.service.d.ts.map +1 -1
  6. package/dist/auth/auth.service.js +8 -8
  7. package/dist/auth/auth.service.js.map +1 -1
  8. package/dist/auth/auth.service.spec.js +16 -16
  9. package/dist/auth/auth.service.spec.js.map +1 -1
  10. package/dist/dto/with-locale.dto.d.ts +4 -0
  11. package/dist/dto/with-locale.dto.d.ts.map +1 -0
  12. package/dist/dto/{with-locales.dto.js → with-locale.dto.js} +5 -5
  13. package/dist/dto/with-locale.dto.js.map +1 -0
  14. package/dist/index.d.ts +2 -2
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +2 -2
  17. package/dist/index.js.map +1 -1
  18. package/dist/locale/locale.controller.js +1 -1
  19. package/dist/locale/locale.controller.js.map +1 -1
  20. package/dist/locale/locale.middleware.d.ts +1 -1
  21. package/dist/locale/locale.middleware.d.ts.map +1 -1
  22. package/dist/locale/locale.middleware.js +2 -2
  23. package/dist/locale/locale.middleware.js.map +1 -1
  24. package/dist/locale/locale.service.d.ts +6 -6
  25. package/dist/locale/locale.service.d.ts.map +1 -1
  26. package/dist/locale/locale.service.js +40 -40
  27. package/dist/locale/locale.service.js.map +1 -1
  28. package/dist/locale/locale.service.spec.js +14 -14
  29. package/dist/locale/locale.service.spec.js.map +1 -1
  30. package/dist/menu/menu.controller.js +3 -3
  31. package/dist/menu/menu.controller.js.map +1 -1
  32. package/dist/menu/menu.service.d.ts +3 -3
  33. package/dist/menu/menu.service.d.ts.map +1 -1
  34. package/dist/menu/menu.service.js +35 -35
  35. package/dist/menu/menu.service.js.map +1 -1
  36. package/dist/menu/menu.service.spec.js +33 -37
  37. package/dist/menu/menu.service.spec.js.map +1 -1
  38. package/dist/role/dto/create.dto.d.ts +2 -2
  39. package/dist/role/dto/create.dto.d.ts.map +1 -1
  40. package/dist/role/dto/create.dto.js +2 -2
  41. package/dist/role/dto/create.dto.js.map +1 -1
  42. package/dist/role/guards/role.guard.js +4 -4
  43. package/dist/role/guards/role.guard.js.map +1 -1
  44. package/dist/role/role.controller.js +7 -7
  45. package/dist/role/role.controller.js.map +1 -1
  46. package/dist/role/role.service.d.ts +2 -2
  47. package/dist/role/role.service.d.ts.map +1 -1
  48. package/dist/role/role.service.js +35 -35
  49. package/dist/role/role.service.js.map +1 -1
  50. package/dist/role/role.service.spec.d.ts +0 -1
  51. package/dist/role/role.service.spec.js +400 -340
  52. package/dist/role/role.service.spec.js.map +1 -1
  53. package/dist/route/route.controller.js +3 -3
  54. package/dist/route/route.controller.js.map +1 -1
  55. package/dist/route/route.service.d.ts +2 -2
  56. package/dist/route/route.service.d.ts.map +1 -1
  57. package/dist/route/route.service.js +18 -18
  58. package/dist/route/route.service.js.map +1 -1
  59. package/dist/route/route.service.spec.js +27 -27
  60. package/dist/route/route.service.spec.js.map +1 -1
  61. package/dist/screen/screen.controller.js +4 -4
  62. package/dist/screen/screen.controller.js.map +1 -1
  63. package/dist/screen/screen.service.d.ts +2 -2
  64. package/dist/screen/screen.service.d.ts.map +1 -1
  65. package/dist/screen/screen.service.js +16 -16
  66. package/dist/screen/screen.service.js.map +1 -1
  67. package/dist/screen/screen.service.spec.js +16 -16
  68. package/dist/screen/screen.service.spec.js.map +1 -1
  69. package/dist/setting/dto/setting.dto.d.ts +9 -0
  70. package/dist/setting/dto/setting.dto.d.ts.map +1 -0
  71. package/dist/setting/dto/{settings.dto.js → setting.dto.js} +6 -6
  72. package/dist/setting/dto/setting.dto.js.map +1 -0
  73. package/dist/setting/{settings.controller.d.ts → setting.controller.d.ts} +6 -6
  74. package/dist/setting/setting.controller.d.ts.map +1 -0
  75. package/dist/setting/{settings.controller.js → setting.controller.js} +20 -20
  76. package/dist/setting/setting.controller.js.map +1 -0
  77. package/dist/setting/setting.module.d.ts +3 -0
  78. package/dist/setting/setting.module.d.ts.map +1 -0
  79. package/dist/setting/{settings.module.js → setting.module.js} +6 -6
  80. package/dist/setting/setting.module.js.map +1 -0
  81. package/dist/setting/{settings.service.d.ts → setting.service.d.ts} +4 -4
  82. package/dist/setting/setting.service.d.ts.map +1 -0
  83. package/dist/setting/{settings.service.js → setting.service.js} +42 -42
  84. package/dist/setting/setting.service.js.map +1 -0
  85. package/dist/setting/setting.service.spec.d.ts +2 -0
  86. package/dist/setting/setting.service.spec.d.ts.map +1 -0
  87. package/dist/setting/{settings.service.spec.js → setting.service.spec.js} +17 -17
  88. package/dist/setting/setting.service.spec.js.map +1 -0
  89. package/dist/user/user.controller.js +3 -3
  90. package/dist/user/user.controller.js.map +1 -1
  91. package/dist/user/user.service.d.ts +2 -2
  92. package/dist/user/user.service.d.ts.map +1 -1
  93. package/dist/user/user.service.js +9 -9
  94. package/dist/user/user.service.js.map +1 -1
  95. package/dist/user/user.service.spec.js +24 -24
  96. package/dist/user/user.service.spec.js.map +1 -1
  97. package/package.json +2 -2
  98. package/src/admin.module.ts +36 -0
  99. package/src/auth/auth.controller.ts +48 -0
  100. package/src/auth/auth.module.ts +39 -0
  101. package/src/auth/auth.service.spec.ts +196 -0
  102. package/src/auth/auth.service.ts +175 -0
  103. package/src/auth/decorators/public.decorator.ts +4 -0
  104. package/src/auth/decorators/user.decorator.ts +17 -0
  105. package/src/auth/dto/forget.dto.ts +6 -0
  106. package/src/auth/dto/login.dto.ts +15 -0
  107. package/src/auth/dto/otp.dto.ts +11 -0
  108. package/src/auth/enums/multifactor-type.enum.ts +4 -0
  109. package/src/auth/guards/auth.guard.ts +50 -0
  110. package/src/auth/types/user.type.ts +8 -0
  111. package/src/dto/delete.dto.ts +8 -0
  112. package/src/dto/update-ids.dto.ts +9 -0
  113. package/src/dto/with-locale.dto.ts +8 -0
  114. package/src/index.ts +34 -0
  115. package/src/locale/dto/create.dto.ts +12 -0
  116. package/src/locale/dto/delete.dto.ts +8 -0
  117. package/src/locale/dto/set-enabled.dto.ts +9 -0
  118. package/src/locale/dto/update.dto.ts +15 -0
  119. package/src/locale/index.ts +4 -0
  120. package/src/locale/locale.controller.ts +79 -0
  121. package/src/locale/locale.decorator.ts +8 -0
  122. package/src/locale/locale.middleware.ts +34 -0
  123. package/src/locale/locale.module.ts +23 -0
  124. package/src/locale/locale.service.spec.ts +193 -0
  125. package/src/locale/locale.service.ts +366 -0
  126. package/src/menu/dto/create.dto.ts +25 -0
  127. package/src/menu/dto/order.dto.ts +8 -0
  128. package/src/menu/dto/update.dto.ts +19 -0
  129. package/src/menu/menu.controller.ts +106 -0
  130. package/src/menu/menu.module.ts +18 -0
  131. package/src/menu/menu.service.spec.ts +247 -0
  132. package/src/menu/menu.service.ts +263 -0
  133. package/src/role/decorators/role.decorator.ts +4 -0
  134. package/src/role/dto/create.dto.ts +7 -0
  135. package/src/role/dto/update.dto.ts +4 -0
  136. package/src/role/guards/role.guard.ts +122 -0
  137. package/src/role/role.controller.ts +126 -0
  138. package/src/role/role.module.ts +28 -0
  139. package/src/role/role.service.spec.ts +417 -0
  140. package/src/role/role.service.ts +302 -0
  141. package/src/route/dto/create.dto.ts +13 -0
  142. package/src/route/dto/update.dto.ts +15 -0
  143. package/src/route/route.controller.ts +91 -0
  144. package/src/route/route.module.ts +18 -0
  145. package/src/route/route.service.spec.ts +299 -0
  146. package/src/route/route.service.ts +164 -0
  147. package/src/screen/dto/create.dto.ts +19 -0
  148. package/src/screen/dto/update.dto.ts +19 -0
  149. package/src/screen/screen.controller.ts +93 -0
  150. package/src/screen/screen.module.ts +18 -0
  151. package/src/screen/screen.service.spec.ts +298 -0
  152. package/src/screen/screen.service.ts +181 -0
  153. package/src/setting/dto/create.dto.ts +1 -0
  154. package/src/setting/dto/setting-user.dto.ts +6 -0
  155. package/src/setting/dto/setting.dto.ts +17 -0
  156. package/src/setting/dto/update.dto.ts +3 -0
  157. package/src/setting/setting.controller.ts +100 -0
  158. package/src/setting/setting.module.ts +18 -0
  159. package/src/setting/setting.service.spec.ts +183 -0
  160. package/src/setting/setting.service.ts +346 -0
  161. package/src/types/http-method.ts +8 -0
  162. package/src/user/constants/user.constants.ts +1 -0
  163. package/src/user/dto/create.dto.ts +24 -0
  164. package/src/user/dto/update.dto.ts +41 -0
  165. package/src/user/user.controller.ts +75 -0
  166. package/src/user/user.module.ts +18 -0
  167. package/src/user/user.service.spec.ts +294 -0
  168. package/src/user/user.service.ts +129 -0
  169. package/tsconfig.lib.json +9 -0
  170. package/tsconfig.production.json +20 -0
  171. package/dist/dto/with-locales.dto.d.ts +0 -4
  172. package/dist/dto/with-locales.dto.d.ts.map +0 -1
  173. package/dist/dto/with-locales.dto.js.map +0 -1
  174. package/dist/setting/dto/settings.dto.d.ts +0 -9
  175. package/dist/setting/dto/settings.dto.d.ts.map +0 -1
  176. package/dist/setting/dto/settings.dto.js.map +0 -1
  177. package/dist/setting/settings.controller.d.ts.map +0 -1
  178. package/dist/setting/settings.controller.js.map +0 -1
  179. package/dist/setting/settings.module.d.ts +0 -3
  180. package/dist/setting/settings.module.d.ts.map +0 -1
  181. package/dist/setting/settings.module.js.map +0 -1
  182. package/dist/setting/settings.service.d.ts.map +0 -1
  183. package/dist/setting/settings.service.js.map +0 -1
  184. package/dist/setting/settings.service.spec.d.ts +0 -2
  185. package/dist/setting/settings.service.spec.d.ts.map +0 -1
  186. 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.role_users.deleteMany({
28
+ await this.prismaService.role_user.deleteMany({
29
29
  where: {
30
30
  role_id: roleId,
31
31
  },
32
32
  });
33
- return this.prismaService.role_users.createMany({
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.role_screens.deleteMany({
42
+ await this.prismaService.role_screen.deleteMany({
43
43
  where: {
44
44
  role_id: roleId,
45
45
  },
46
46
  });
47
- return this.prismaService.role_screens.createMany({
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.role_routes.deleteMany({
56
+ await this.prismaService.role_route.deleteMany({
57
57
  where: {
58
58
  role_id: roleId,
59
59
  },
60
60
  });
61
- return this.prismaService.role_routes.createMany({
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.role_menus.deleteMany({
70
+ await this.prismaService.role_menu.deleteMany({
71
71
  where: {
72
72
  role_id: roleId,
73
73
  },
74
74
  });
75
- return this.prismaService.role_menus.createMany({
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.users, paginationParams, {
84
+ return this.paginationService.paginate(this.prismaService.user, paginationParams, {
85
85
  include: {
86
- role_users: {
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.menus, paginationParams, {
99
+ return this.paginationService.paginate(this.prismaService.menu, paginationParams, {
100
100
  include: {
101
- menu_translations: {
101
+ menu_locale: {
102
102
  where: {
103
- locales: {
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
- role_menus: {
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
- }, 'menu_translations');
121
+ }, 'menu_locale');
122
122
  }
123
123
  async listRoutes(roleId, paginationParams) {
124
- return this.paginationService.paginate(this.prismaService.routes, paginationParams, {
124
+ return this.paginationService.paginate(this.prismaService.route, paginationParams, {
125
125
  include: {
126
- role_routes: {
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.screens, paginationParams, {
139
+ return this.paginationService.paginate(this.prismaService.screen, paginationParams, {
140
140
  include: {
141
- screen_translations: {
141
+ screen_locale: {
142
142
  where: {
143
- locales: {
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
- role_screens: {
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
- }, 'screen_translations');
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.roles, paginationParams, {
166
+ return this.paginationService.paginate(this.prismaService.role, paginationParams, {
167
167
  where: {
168
168
  OR,
169
169
  },
170
170
  include: {
171
- role_translations: {
171
+ role_locale: {
172
172
  where: {
173
- locales: {
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
- }, 'role_translations');
183
+ }, 'role_locale');
184
184
  }
185
185
  async get(locale, roleId) {
186
- return (0, utils_1.getWithLocale)(locale, 'role_translations', await this.prismaService.roles.findUnique({
186
+ return (0, utils_1.getWithLocale)(locale, 'role_locale', await this.prismaService.role.findUnique({
187
187
  where: { id: roleId },
188
188
  include: {
189
- role_translations: {
189
+ role_locale: {
190
190
  where: {
191
- locales: {
191
+ locale: {
192
192
  enabled: true,
193
193
  },
194
194
  },
195
195
  select: {
196
196
  name: true,
197
197
  description: true,
198
- locales: {
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, locales }) {
209
- return this.localeService.createModelWithLocales('roles', 'role_id', { slug }, locales);
208
+ async create({ slug, locale }) {
209
+ return this.localeService.createModelWithLocale('role', 'role_id', { slug }, locale);
210
210
  }
211
- async update({ id, data: { locales, slug }, }) {
212
- return this.localeService.updateModelWithLocales('roles', 'role_id', id, { slug }, locales);
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.roles.deleteMany({
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,sCAA0C;AAKnC,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YAEmB,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