@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.
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
@@ -26,7 +26,7 @@ let LocaleService = class LocaleService {
26
26
  if (!codes || codes.length < 1) {
27
27
  throw new common_1.BadRequestException('You must select at least one item code.');
28
28
  }
29
- await this.prismaService.locales.updateMany({
29
+ await this.prismaService.locale.updateMany({
30
30
  where: {
31
31
  enabled: true,
32
32
  },
@@ -34,7 +34,7 @@ let LocaleService = class LocaleService {
34
34
  enabled: false,
35
35
  },
36
36
  });
37
- return this.prismaService.locales.updateMany({
37
+ return this.prismaService.locale.updateMany({
38
38
  where: {
39
39
  code: {
40
40
  in: codes,
@@ -45,10 +45,10 @@ let LocaleService = class LocaleService {
45
45
  },
46
46
  });
47
47
  }
48
- async getEnables(locale, paginationParams) {
48
+ async getEnables(currentLocale, paginationParams) {
49
49
  const fields = ['code', 'region'];
50
50
  const OR = this.prismaService.createInsensitiveSearch(fields, paginationParams);
51
- const result = await this.paginationService.paginate(this.prismaService.locales, paginationParams, {
51
+ const result = await this.paginationService.paginate(this.prismaService.locale, paginationParams, {
52
52
  where: {
53
53
  AND: [
54
54
  {
@@ -64,19 +64,19 @@ let LocaleService = class LocaleService {
64
64
  for (const item of result.data) {
65
65
  codes.push(item.code);
66
66
  }
67
- const { code, region, locales } = this.parseLocale(locale);
67
+ const { code, region, locale } = this.parseLocale(currentLocale);
68
68
  const where = {
69
- locales: {
69
+ locale: {
70
70
  code,
71
71
  },
72
72
  translation_namespaces: {
73
73
  name: 'translation',
74
74
  },
75
75
  };
76
- if (locales.length > 1) {
76
+ if (locale.length > 1) {
77
77
  where.locale.region = region;
78
78
  }
79
- const values = await this.prismaService.translations.findMany({
79
+ const values = await this.prismaService.translation.findMany({
80
80
  where,
81
81
  select: {
82
82
  name: true,
@@ -100,7 +100,7 @@ let LocaleService = class LocaleService {
100
100
  return {
101
101
  code,
102
102
  region,
103
- locales: localeCodes,
103
+ locale: localeCodes,
104
104
  };
105
105
  }
106
106
  async getTranslations(localeCode, namespace) {
@@ -110,35 +110,35 @@ let LocaleService = class LocaleService {
110
110
  if (!namespace) {
111
111
  namespace = 'translation';
112
112
  }
113
- const { code, region, locales } = this.parseLocale(localeCode);
113
+ const { code, region, locale } = this.parseLocale(localeCode);
114
114
  const where = {
115
- locales: {
115
+ locale: {
116
116
  code,
117
117
  },
118
118
  translation_namespaces: {
119
119
  name: namespace,
120
120
  },
121
121
  };
122
- if (locales.length > 1) {
123
- where.locales.region = region;
122
+ if (locale.length > 1) {
123
+ where.locale.region = region;
124
124
  }
125
- const values = await this.prismaService.translations.findMany({
125
+ const values = await this.prismaService.translation.findMany({
126
126
  where,
127
127
  select: {
128
128
  name: true,
129
129
  value: true,
130
130
  },
131
131
  });
132
- const translations = {};
132
+ const translation = {};
133
133
  for (const value of values) {
134
- translations[value.name] = value.value;
134
+ translation[value.name] = value.value;
135
135
  }
136
- return translations;
136
+ return translation;
137
137
  }
138
- async get(locale, paginationParams) {
138
+ async get(currentLocale, paginationParams) {
139
139
  const fields = ['code', 'region'];
140
140
  const OR = this.prismaService.createInsensitiveSearch(fields, paginationParams);
141
- const result = await this.paginationService.paginate(this.prismaService.locales, paginationParams, {
141
+ const result = await this.paginationService.paginate(this.prismaService.locale, paginationParams, {
142
142
  where: {
143
143
  OR,
144
144
  },
@@ -147,19 +147,19 @@ let LocaleService = class LocaleService {
147
147
  for (const item of result.data) {
148
148
  codes.push(item.code);
149
149
  }
150
- const { code, region, locales } = this.parseLocale(locale);
150
+ const { code, region, locale } = this.parseLocale(currentLocale);
151
151
  const where = {
152
- locales: {
152
+ locale: {
153
153
  code,
154
154
  },
155
155
  translation_namespaces: {
156
156
  name: 'translation',
157
157
  },
158
158
  };
159
- if (locales.length > 1) {
159
+ if (locale.length > 1) {
160
160
  where.locale.region = region;
161
161
  }
162
- const values = await this.prismaService.translations.findMany({
162
+ const values = await this.prismaService.translation.findMany({
163
163
  where,
164
164
  select: {
165
165
  name: true,
@@ -180,22 +180,22 @@ let LocaleService = class LocaleService {
180
180
  if (this.codes[code]) {
181
181
  return this.codes[code];
182
182
  }
183
- return (this.codes[code] = await this.prismaService.locales.findFirst({
183
+ return (this.codes[code] = await this.prismaService.locale.findFirst({
184
184
  where: { code },
185
185
  }));
186
186
  }
187
- async getById(localesId) {
188
- return this.prismaService.locales.findUnique({
189
- where: { id: localesId },
187
+ async getById(localeId) {
188
+ return this.prismaService.locale.findUnique({
189
+ where: { id: localeId },
190
190
  });
191
191
  }
192
192
  async create(data) {
193
- return this.prismaService.locales.create({
193
+ return this.prismaService.locale.create({
194
194
  data,
195
195
  });
196
196
  }
197
197
  async update({ id, data }) {
198
- return this.prismaService.locales.update({
198
+ return this.prismaService.locale.update({
199
199
  where: { id },
200
200
  data,
201
201
  });
@@ -204,7 +204,7 @@ let LocaleService = class LocaleService {
204
204
  if (ids == undefined || ids == null) {
205
205
  throw new common_1.BadRequestException('You must select at least one item to delete.');
206
206
  }
207
- return this.prismaService.locales.deleteMany({
207
+ return this.prismaService.locale.deleteMany({
208
208
  where: {
209
209
  id: {
210
210
  in: ids,
@@ -217,15 +217,15 @@ let LocaleService = class LocaleService {
217
217
  modelNames.push('locale');
218
218
  return modelNames.join('_');
219
219
  }
220
- async createModelWithLocales(modelName, foreginKeyName, data, locales) {
220
+ async createModelWithLocale(modelName, foreginKeyName, data, locale) {
221
221
  const model = await this.prismaService[modelName].create({
222
222
  data,
223
223
  });
224
- for (const localeCode of Object.keys(locales)) {
224
+ for (const localeCode of Object.keys(locale)) {
225
225
  const locale = await this.getByCode(localeCode);
226
226
  const data = {};
227
- for (const key of Object.keys(locales[localeCode])) {
228
- data[key] = locales[localeCode][key];
227
+ for (const key of Object.keys(locale[localeCode])) {
228
+ data[key] = locale[localeCode][key];
229
229
  }
230
230
  await this.prismaService[this.getTableNameTranslations(modelName)].create({
231
231
  data: Object.assign({ [foreginKeyName]: model.id, locale_id: locale.id }, data),
@@ -236,12 +236,12 @@ let LocaleService = class LocaleService {
236
236
  include: {
237
237
  [this.getTableNameTranslations(modelName)]: {
238
238
  where: {
239
- locales: {
239
+ locale: {
240
240
  enabled: true,
241
241
  },
242
242
  },
243
243
  include: {
244
- locales: {
244
+ locale: {
245
245
  select: {
246
246
  code: true,
247
247
  },
@@ -251,12 +251,12 @@ let LocaleService = class LocaleService {
251
251
  },
252
252
  });
253
253
  }
254
- async updateModelWithLocales(modelName, foreginKeyName, id, data, locales) {
255
- for (const localeCode of Object.keys(locales)) {
254
+ async updateModelWithLocale(modelName, foreginKeyName, id, data, locale) {
255
+ for (const localeCode of Object.keys(locale)) {
256
256
  const locale = await this.getByCode(localeCode);
257
257
  const data = {};
258
- for (const key of Object.keys(locales[localeCode])) {
259
- data[key] = locales[localeCode][key];
258
+ for (const key of Object.keys(locale[localeCode])) {
259
+ data[key] = locale[localeCode][key];
260
260
  }
261
261
  await this.prismaService[this.getTableNameTranslations(modelName)].upsert({
262
262
  where: {
@@ -1 +1 @@
1
- {"version":3,"file":"locale.service.js","sourceRoot":"","sources":["../../src/locale/locale.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAsE;AACtE,2CAA+C;AAC/C,2CAKwB;AAMjB,IAAM,aAAa,GAAnB,MAAM,aAAa;IAGxB,YAEE,aAA6C,EAE7C,iBAAqD;QAFpC,kBAAa,GAAb,aAAa,CAAe;QAE5B,sBAAiB,GAAjB,iBAAiB,CAAmB;QAN/C,UAAK,GAAQ,EAAE,CAAC;IAOrB,CAAC;IAEJ,KAAK,CAAC,UAAU,CAAC,KAAe;QAC9B,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC/B,MAAM,IAAI,4BAAmB,CAAC,yCAAyC,CAAC,CAAC;QAC3E,CAAC;QAED,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC;YAC1C,KAAK,EAAE;gBACL,OAAO,EAAE,IAAI;aACd;YACD,IAAI,EAAE;gBACJ,OAAO,EAAE,KAAK;aACf;SACF,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC;YAC3C,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,EAAE,EAAE,KAAK;iBACV;aACF;YACD,IAAI,EAAE;gBACJ,OAAO,EAAE,IAAI;aACd;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,MAAc,EAAE,gBAA+B;QAC9D,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAClC,MAAM,EAAE,GAAU,IAAI,CAAC,aAAa,CAAC,uBAAuB,CAC1D,MAAM,EACN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BAAa;QAET,8BAAiB;GAP5C,aAAa,CAgWzB"}
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const testing_1 = require("@nestjs/testing");
4
- const locale_service_1 = require("./locale.service");
5
- const prisma_1 = require("@hedhog/prisma");
6
3
  const pagination_1 = require("@hedhog/pagination");
4
+ const prisma_1 = require("@hedhog/prisma");
7
5
  const common_1 = require("@nestjs/common");
6
+ const testing_1 = require("@nestjs/testing");
7
+ const locale_service_1 = require("./locale.service");
8
8
  describe('LocaleService', () => {
9
9
  let service;
10
10
  let prismaService;
@@ -16,10 +16,10 @@ describe('LocaleService', () => {
16
16
  {
17
17
  provide: prisma_1.PrismaService,
18
18
  useValue: {
19
- translations: {
19
+ translation: {
20
20
  findMany: jest.fn(),
21
21
  },
22
- locales: {
22
+ locale: {
23
23
  findUnique: jest.fn(),
24
24
  create: jest.fn(),
25
25
  update: jest.fn(),
@@ -46,7 +46,7 @@ describe('LocaleService', () => {
46
46
  it('should throw BadRequestException when localeCode is not provided', async () => {
47
47
  await expect(service.getTranslations('', 'namespace')).rejects.toThrow(common_1.BadRequestException);
48
48
  });
49
- it('should return translations for a given localeCode and namespace', async () => {
49
+ it('should return translation for a given localeCode and namespace', async () => {
50
50
  const mockTranslations = [
51
51
  {
52
52
  id: 1,
@@ -59,7 +59,7 @@ describe('LocaleService', () => {
59
59
  },
60
60
  ];
61
61
  jest
62
- .spyOn(prismaService.translations, 'findMany')
62
+ .spyOn(prismaService.translation, 'findMany')
63
63
  .mockResolvedValue(mockTranslations);
64
64
  const result = await service.getTranslations('en-US', 'namespace');
65
65
  expect(result).toEqual({ hello: 'Hello' });
@@ -67,7 +67,7 @@ describe('LocaleService', () => {
67
67
  });
68
68
  /*
69
69
  describe('get', () => {
70
- it('should paginate locales', async () => {
70
+ it('should paginate locale', async () => {
71
71
  const mockPaginationResult = {
72
72
  data: [],
73
73
  total: 10,
@@ -92,7 +92,7 @@ describe('LocaleService', () => {
92
92
  const result = await service.get(paginationParams );
93
93
 
94
94
  expect(paginationService.paginate).toHaveBeenCalledWith(
95
- prismaService.locales,
95
+ prismaService.locale,
96
96
  paginationParams,
97
97
  expect.anything(),
98
98
  );
@@ -111,7 +111,7 @@ describe('LocaleService', () => {
111
111
  updated_at: new Date(),
112
112
  };
113
113
  jest
114
- .spyOn(prismaService.locales, 'findUnique')
114
+ .spyOn(prismaService.locale, 'findUnique')
115
115
  .mockResolvedValue(mockLocale);
116
116
  const result = await service.getById(1);
117
117
  expect(result).toBe(mockLocale);
@@ -132,7 +132,7 @@ describe('LocaleService', () => {
132
132
  created_at: new Date(),
133
133
  updated_at: new Date(),
134
134
  };
135
- jest.spyOn(prismaService.locales, 'create').mockResolvedValue(mockLocale);
135
+ jest.spyOn(prismaService.locale, 'create').mockResolvedValue(mockLocale);
136
136
  const result = await service.create(mockCreateDTO);
137
137
  expect(result).toBe(mockLocale);
138
138
  });
@@ -152,7 +152,7 @@ describe('LocaleService', () => {
152
152
  created_at: new Date(),
153
153
  updated_at: new Date(),
154
154
  };
155
- jest.spyOn(prismaService.locales, 'update').mockResolvedValue(mockLocale);
155
+ jest.spyOn(prismaService.locale, 'update').mockResolvedValue(mockLocale);
156
156
  const result = await service.update({ id: 1, data: mockUpdateDTO });
157
157
  expect(result).toBe(mockLocale);
158
158
  });
@@ -161,10 +161,10 @@ describe('LocaleService', () => {
161
161
  it('should throw BadRequestException if no IDs are provided', async () => {
162
162
  await expect(service.delete({ ids: null })).rejects.toThrow(common_1.BadRequestException);
163
163
  });
164
- it('should delete locales by IDs', async () => {
164
+ it('should delete locale by IDs', async () => {
165
165
  const mockDeleteDTO = { ids: [1, 2, 3] };
166
166
  jest
167
- .spyOn(prismaService.locales, 'deleteMany')
167
+ .spyOn(prismaService.locale, 'deleteMany')
168
168
  .mockResolvedValue({ count: 3 });
169
169
  const result = await service.delete(mockDeleteDTO);
170
170
  expect(result.count).toBe(3);
@@ -1 +1 @@
1
- {"version":3,"file":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CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -83,7 +83,7 @@ __decorate([
83
83
  __metadata("design:returntype", Promise)
84
84
  ], MenuController.prototype, "getMenu", null);
85
85
  __decorate([
86
- (0, common_1.Get)(':menuId/roles'),
86
+ (0, common_1.Get)(':menuId/role'),
87
87
  __param(0, (0, common_1.Param)('menuId', common_1.ParseIntPipe)),
88
88
  __param(1, (0, pagination_1.Pagination)()),
89
89
  __param(2, (0, locale_1.Locale)()),
@@ -101,7 +101,7 @@ __decorate([
101
101
  __metadata("design:returntype", Promise)
102
102
  ], MenuController.prototype, "listScreens", null);
103
103
  __decorate([
104
- (0, common_1.Patch)(':menuId/roles'),
104
+ (0, common_1.Patch)(':menuId/role'),
105
105
  __param(0, (0, common_1.Param)('menuId', common_1.ParseIntPipe)),
106
106
  __param(1, (0, common_1.Body)()),
107
107
  __metadata("design:type", Function),
@@ -154,7 +154,7 @@ __decorate([
154
154
  ], MenuController.prototype, "updateOrder", null);
155
155
  exports.MenuController = MenuController = __decorate([
156
156
  (0, role_decorator_1.Role)(),
157
- (0, common_1.Controller)('menus'),
157
+ (0, common_1.Controller)('menu'),
158
158
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => menu_service_1.MenuService))),
159
159
  __metadata("design:paramtypes", [menu_service_1.MenuService])
160
160
  ], MenuController);
@@ -1 +1 @@
1
- {"version":3,"file":"menu.controller.js","sourceRoot":"","sources":["../../src/menu/menu.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAWwB;AACxB,sEAAyD;AACzD,kDAA8C;AAC9C,0DAAqD;AACrD,sCAAmC;AACnC,sEAAyD;AACzD,iDAA6C;AAC7C,+CAA2C;AAC3C,iDAA6C;AAC7C,iDAA6C;AAItC,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAEmB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,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IAAA,cAAK,EAAC,iBAAiB,CAAC;IAEtB,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;IAC7B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,6BAAY;;mDAG3B;AAGK;IADL,IAAA,YAAG,EAAC,SAAS,CAAC;IACH,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;;;;0CAExC;AAGK;IADL,IAAA,aAAI,GAAE;IACO,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;4CAEnC;AAGK;IADL,IAAA,cAAK,EAAC,SAAS,CAAC;IAEd,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;IAC7B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;4CAMxB;AAGK;IADL,IAAA,eAAM,GAAE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;4CAEnC;AAGK;IADL,IAAA,cAAK,EAAC,OAAO,CAAC;IACI,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,oBAAQ;;iDAEvC;yBA/EU,cAAc;IAF1B,IAAA,qBAAI,GAAE;IACN,IAAA,mBAAU,EAAC,MAAM,CAAC;IAGd,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC,CAAC,CAAA;qCACR,0BAAW;GAHhC,cAAc,CAgF1B"}
@@ -1,10 +1,10 @@
1
1
  import { PaginationDTO, PaginationService } from '@hedhog/pagination';
2
2
  import { PrismaService } from '@hedhog/prisma';
3
- import { CreateDTO } from './dto/create.dto';
4
3
  import { DeleteDTO } from '../dto/delete.dto';
5
- import { UpdateDTO } from './dto/update.dto';
6
- import { OrderDTO } from './dto/order.dto';
7
4
  import { UpdateIdsDTO } from '../dto/update-ids.dto';
5
+ import { CreateDTO } from './dto/create.dto';
6
+ import { OrderDTO } from './dto/order.dto';
7
+ import { UpdateDTO } from './dto/update.dto';
8
8
  export declare class MenuService {
9
9
  private readonly prismaService;
10
10
  private readonly paginationService;
@@ -1 +1 @@
1
- {"version":3,"file":"menu.service.d.ts","sourceRoot":"","sources":["../../src/menu/menu.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAO/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,qBACa,WAAW;IAGpB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;IAehD,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;IAe9C,WAAW,CACf,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,aAAa;IA+B3B,SAAS,CACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,aAAa;IAiC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAI;IA8CnD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAI5C,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IA+BvD,GAAG,CAAC,MAAM,E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