@hedhog/admin 0.0.104 → 0.0.106

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. package/README.md +141 -141
  2. package/dist/admin.module.d.ts.map +1 -1
  3. package/dist/admin.module.js +8 -7
  4. package/dist/admin.module.js.map +1 -1
  5. package/dist/auth/auth.service.d.ts +1 -1
  6. package/dist/auth/auth.service.d.ts.map +1 -1
  7. package/dist/auth/auth.service.js +8 -8
  8. package/dist/auth/auth.service.js.map +1 -1
  9. package/dist/auth/auth.service.spec.js +16 -16
  10. package/dist/auth/auth.service.spec.js.map +1 -1
  11. package/dist/dto/with-locale.dto.d.ts +4 -0
  12. package/dist/dto/with-locale.dto.d.ts.map +1 -0
  13. package/dist/dto/{with-locales.dto.js → with-locale.dto.js} +5 -5
  14. package/dist/dto/with-locale.dto.js.map +1 -0
  15. package/dist/index.d.ts +2 -2
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +2 -2
  18. package/dist/index.js.map +1 -1
  19. package/dist/locale/locale.controller.d.ts +1 -1
  20. package/dist/locale/locale.controller.d.ts.map +1 -1
  21. package/dist/locale/locale.controller.js +4 -4
  22. package/dist/locale/locale.controller.js.map +1 -1
  23. package/dist/locale/locale.middleware.d.ts +1 -1
  24. package/dist/locale/locale.middleware.d.ts.map +1 -1
  25. package/dist/locale/locale.middleware.js +2 -2
  26. package/dist/locale/locale.middleware.js.map +1 -1
  27. package/dist/locale/locale.service.d.ts +6 -6
  28. package/dist/locale/locale.service.d.ts.map +1 -1
  29. package/dist/locale/locale.service.js +43 -43
  30. package/dist/locale/locale.service.js.map +1 -1
  31. package/dist/locale/locale.service.spec.js +14 -14
  32. package/dist/locale/locale.service.spec.js.map +1 -1
  33. package/dist/menu/menu.controller.js +3 -3
  34. package/dist/menu/menu.controller.js.map +1 -1
  35. package/dist/menu/menu.service.d.ts +3 -3
  36. package/dist/menu/menu.service.d.ts.map +1 -1
  37. package/dist/menu/menu.service.js +35 -35
  38. package/dist/menu/menu.service.js.map +1 -1
  39. package/dist/menu/menu.service.spec.js +33 -37
  40. package/dist/menu/menu.service.spec.js.map +1 -1
  41. package/dist/role/dto/create.dto.d.ts +2 -2
  42. package/dist/role/dto/create.dto.d.ts.map +1 -1
  43. package/dist/role/dto/create.dto.js +2 -2
  44. package/dist/role/dto/create.dto.js.map +1 -1
  45. package/dist/role/guards/role.guard.js +4 -4
  46. package/dist/role/guards/role.guard.js.map +1 -1
  47. package/dist/role/role.controller.d.ts.map +1 -1
  48. package/dist/role/role.controller.js +9 -9
  49. package/dist/role/role.controller.js.map +1 -1
  50. package/dist/role/role.service.d.ts +2 -2
  51. package/dist/role/role.service.d.ts.map +1 -1
  52. package/dist/role/role.service.js +35 -35
  53. package/dist/role/role.service.js.map +1 -1
  54. package/dist/role/role.service.spec.d.ts +0 -1
  55. package/dist/role/role.service.spec.js +400 -340
  56. package/dist/role/role.service.spec.js.map +1 -1
  57. package/dist/route/route.controller.js +3 -3
  58. package/dist/route/route.controller.js.map +1 -1
  59. package/dist/route/route.service.d.ts +2 -2
  60. package/dist/route/route.service.d.ts.map +1 -1
  61. package/dist/route/route.service.js +19 -19
  62. package/dist/route/route.service.js.map +1 -1
  63. package/dist/route/route.service.spec.js +27 -27
  64. package/dist/route/route.service.spec.js.map +1 -1
  65. package/dist/screen/screen.controller.d.ts +1 -1
  66. package/dist/screen/screen.controller.d.ts.map +1 -1
  67. package/dist/screen/screen.controller.js +8 -8
  68. package/dist/screen/screen.controller.js.map +1 -1
  69. package/dist/screen/screen.service.d.ts +3 -3
  70. package/dist/screen/screen.service.d.ts.map +1 -1
  71. package/dist/screen/screen.service.js +18 -18
  72. package/dist/screen/screen.service.js.map +1 -1
  73. package/dist/screen/screen.service.spec.js +16 -16
  74. package/dist/screen/screen.service.spec.js.map +1 -1
  75. package/dist/setting/dto/setting.dto.d.ts +9 -0
  76. package/dist/setting/dto/setting.dto.d.ts.map +1 -0
  77. package/dist/setting/dto/{settings.dto.js → setting.dto.js} +6 -6
  78. package/dist/setting/dto/setting.dto.js.map +1 -0
  79. package/dist/setting/{settings.controller.d.ts → setting.controller.d.ts} +8 -8
  80. package/dist/setting/setting.controller.d.ts.map +1 -0
  81. package/dist/setting/{settings.controller.js → setting.controller.js} +26 -26
  82. package/dist/setting/setting.controller.js.map +1 -0
  83. package/dist/setting/setting.module.d.ts +3 -0
  84. package/dist/setting/setting.module.d.ts.map +1 -0
  85. package/dist/setting/{settings.module.js → setting.module.js} +6 -6
  86. package/dist/setting/setting.module.js.map +1 -0
  87. package/dist/setting/{settings.service.d.ts → setting.service.d.ts} +6 -6
  88. package/dist/setting/setting.service.d.ts.map +1 -0
  89. package/dist/setting/{settings.service.js → setting.service.js} +44 -44
  90. package/dist/setting/setting.service.js.map +1 -0
  91. package/dist/setting/setting.service.spec.d.ts +2 -0
  92. package/dist/setting/setting.service.spec.d.ts.map +1 -0
  93. package/dist/setting/{settings.service.spec.js → setting.service.spec.js} +17 -17
  94. package/dist/setting/setting.service.spec.js.map +1 -0
  95. package/dist/user/user.controller.d.ts +2 -2
  96. package/dist/user/user.controller.d.ts.map +1 -1
  97. package/dist/user/user.controller.js +8 -8
  98. package/dist/user/user.controller.js.map +1 -1
  99. package/dist/user/user.service.d.ts +3 -3
  100. package/dist/user/user.service.d.ts.map +1 -1
  101. package/dist/user/user.service.js +10 -10
  102. package/dist/user/user.service.js.map +1 -1
  103. package/dist/user/user.service.spec.js +62 -49
  104. package/dist/user/user.service.spec.js.map +1 -1
  105. package/package.json +2 -2
  106. package/src/admin.module.ts +37 -0
  107. package/src/auth/auth.controller.ts +48 -0
  108. package/src/auth/auth.module.ts +39 -0
  109. package/src/auth/auth.service.spec.ts +196 -0
  110. package/src/auth/auth.service.ts +175 -0
  111. package/src/auth/decorators/public.decorator.ts +4 -0
  112. package/src/auth/decorators/user.decorator.ts +17 -0
  113. package/src/auth/dto/forget.dto.ts +6 -0
  114. package/src/auth/dto/login.dto.ts +15 -0
  115. package/src/auth/dto/otp.dto.ts +11 -0
  116. package/src/auth/enums/multifactor-type.enum.ts +4 -0
  117. package/src/auth/guards/auth.guard.ts +50 -0
  118. package/src/auth/types/user.type.ts +8 -0
  119. package/src/dto/delete.dto.ts +8 -0
  120. package/src/dto/update-ids.dto.ts +9 -0
  121. package/src/dto/with-locale.dto.ts +8 -0
  122. package/src/index.ts +34 -0
  123. package/src/locale/dto/create.dto.ts +12 -0
  124. package/src/locale/dto/delete.dto.ts +8 -0
  125. package/src/locale/dto/set-enabled.dto.ts +9 -0
  126. package/src/locale/dto/update.dto.ts +15 -0
  127. package/src/locale/index.ts +4 -0
  128. package/src/locale/locale.controller.ts +79 -0
  129. package/src/locale/locale.decorator.ts +8 -0
  130. package/src/locale/locale.middleware.ts +34 -0
  131. package/src/locale/locale.module.ts +23 -0
  132. package/src/locale/locale.service.spec.ts +193 -0
  133. package/src/locale/locale.service.ts +366 -0
  134. package/src/menu/dto/create.dto.ts +25 -0
  135. package/src/menu/dto/order.dto.ts +8 -0
  136. package/src/menu/dto/update.dto.ts +19 -0
  137. package/src/menu/menu.controller.ts +106 -0
  138. package/src/menu/menu.module.ts +18 -0
  139. package/src/menu/menu.service.spec.ts +247 -0
  140. package/src/menu/menu.service.ts +263 -0
  141. package/src/role/decorators/role.decorator.ts +4 -0
  142. package/src/role/dto/create.dto.ts +7 -0
  143. package/src/role/dto/update.dto.ts +4 -0
  144. package/src/role/guards/role.guard.ts +122 -0
  145. package/src/role/role.controller.ts +126 -0
  146. package/src/role/role.module.ts +28 -0
  147. package/src/role/role.service.spec.ts +417 -0
  148. package/src/role/role.service.ts +302 -0
  149. package/src/route/dto/create.dto.ts +13 -0
  150. package/src/route/dto/update.dto.ts +15 -0
  151. package/src/route/route.controller.ts +91 -0
  152. package/src/route/route.module.ts +18 -0
  153. package/src/route/route.service.spec.ts +299 -0
  154. package/src/route/route.service.ts +164 -0
  155. package/src/screen/dto/create.dto.ts +19 -0
  156. package/src/screen/dto/update.dto.ts +19 -0
  157. package/src/screen/screen.controller.ts +93 -0
  158. package/src/screen/screen.module.ts +18 -0
  159. package/src/screen/screen.service.spec.ts +298 -0
  160. package/src/screen/screen.service.ts +181 -0
  161. package/src/setting/dto/create.dto.ts +1 -0
  162. package/src/setting/dto/setting-user.dto.ts +6 -0
  163. package/src/setting/dto/setting.dto.ts +17 -0
  164. package/src/setting/dto/update.dto.ts +3 -0
  165. package/src/setting/setting.controller.ts +100 -0
  166. package/src/setting/setting.module.ts +18 -0
  167. package/src/setting/setting.service.spec.ts +183 -0
  168. package/src/setting/setting.service.ts +346 -0
  169. package/src/types/http-method.ts +8 -0
  170. package/src/user/constants/user.constants.ts +1 -0
  171. package/src/user/dto/create.dto.ts +24 -0
  172. package/src/user/dto/update.dto.ts +41 -0
  173. package/src/user/user.controller.ts +75 -0
  174. package/src/user/user.module.ts +18 -0
  175. package/src/user/user.service.spec.ts +294 -0
  176. package/src/user/user.service.ts +129 -0
  177. package/tsconfig.lib.json +9 -0
  178. package/tsconfig.production.json +20 -0
  179. package/dist/dto/with-locales.dto.d.ts +0 -4
  180. package/dist/dto/with-locales.dto.d.ts.map +0 -1
  181. package/dist/dto/with-locales.dto.js.map +0 -1
  182. package/dist/setting/dto/settings.dto.d.ts +0 -9
  183. package/dist/setting/dto/settings.dto.d.ts.map +0 -1
  184. package/dist/setting/dto/settings.dto.js.map +0 -1
  185. package/dist/setting/settings.controller.d.ts.map +0 -1
  186. package/dist/setting/settings.controller.js.map +0 -1
  187. package/dist/setting/settings.module.d.ts +0 -3
  188. package/dist/setting/settings.module.d.ts.map +0 -1
  189. package/dist/setting/settings.module.js.map +0 -1
  190. package/dist/setting/settings.service.d.ts.map +0 -1
  191. package/dist/setting/settings.service.js.map +0 -1
  192. package/dist/setting/settings.service.spec.d.ts +0 -2
  193. package/dist/setting/settings.service.spec.d.ts.map +0 -1
  194. package/dist/setting/settings.service.spec.js.map +0 -1
@@ -20,8 +20,8 @@ export declare class RoleService {
20
20
  listScreens(locale: string, roleId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
21
21
  getRoles(locale: string, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
22
22
  get(locale: string, roleId: number): Promise<any>;
23
- create({ slug, locales }: CreateDTO): Promise<any>;
24
- update({ id, data: { locales, slug }, }: {
23
+ create({ slug, locale }: CreateDTO): Promise<any>;
24
+ update({ id, data: { locale, slug }, }: {
25
25
  id: number;
26
26
  data: UpdateDTO;
27
27
  }): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"role.service.d.ts","sourceRoot":"","sources":["../../src/role/role.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAQ/C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,WAAW;IAGpB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAElC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAJb,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB,EAEpC,aAAa,EAAE,aAAa;IAGzC,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,YAAY;IAgBjD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;IAgBhD,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;IAgB/C,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;IAg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iBAAiB;IAElC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAJb,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB,EAEpC,aAAa,EAAE,aAAa;IAGzC,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,YAAY;IAgBjD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;IAgBhD,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;IAgB/C,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;IAgB9C,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IAoBzD,SAAS,CACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,aAAa;IAgC3B,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IAoB1D,WAAW,CACf,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,aAAa;IAgC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IAiCxD,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IA4BlC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,SAAS;IASlC,MAAM,CAAC,EACX,EAAE,EACF,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GACvB,EAAE;QACD,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,SAAS,CAAC;KACjB;IAUK,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS;CAehC"}
@@ -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
-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