@hedhog/admin 0.0.107 → 0.0.108

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. package/dist/admin.module.d.ts.map +1 -1
  2. package/dist/admin.module.js +2 -0
  3. package/dist/admin.module.js.map +1 -1
  4. package/dist/dto/with-locale.dto.d.ts +1 -1
  5. package/dist/dto/with-locale.dto.d.ts.map +1 -1
  6. package/dist/dto/with-locale.dto.js.map +1 -1
  7. package/dist/locale/locale.service.d.ts +2 -2
  8. package/dist/locale/locale.service.d.ts.map +1 -1
  9. package/dist/locale/locale.service.js +56 -56
  10. package/dist/locale/locale.service.js.map +1 -1
  11. package/dist/menu/menu.controller.d.ts +1 -1
  12. package/dist/menu/menu.controller.d.ts.map +1 -1
  13. package/dist/menu/menu.controller.js +3 -3
  14. package/dist/menu/menu.controller.js.map +1 -1
  15. package/dist/menu/menu.service.d.ts +1 -1
  16. package/dist/menu/menu.service.d.ts.map +1 -1
  17. package/dist/menu/menu.service.js +1 -1
  18. package/dist/menu/menu.service.js.map +1 -1
  19. package/dist/role/decorators/role.decorator.d.ts +1 -1
  20. package/dist/role/decorators/role.decorator.d.ts.map +1 -1
  21. package/dist/role/decorators/role.decorator.js +5 -3
  22. package/dist/role/decorators/role.decorator.js.map +1 -1
  23. package/dist/role/role.controller.d.ts +1 -1
  24. package/dist/role/role.controller.d.ts.map +1 -1
  25. package/dist/role/role.controller.js +3 -3
  26. package/dist/role/role.controller.js.map +1 -1
  27. package/dist/role/role.service.d.ts +1 -1
  28. package/dist/role/role.service.d.ts.map +1 -1
  29. package/dist/role/role.service.js +1 -1
  30. package/dist/role/role.service.js.map +1 -1
  31. package/dist/route/route.controller.d.ts +2 -2
  32. package/dist/route/route.controller.d.ts.map +1 -1
  33. package/dist/route/route.controller.js +6 -6
  34. package/dist/route/route.controller.js.map +1 -1
  35. package/dist/route/route.service.d.ts +2 -2
  36. package/dist/route/route.service.d.ts.map +1 -1
  37. package/dist/route/route.service.js +2 -2
  38. package/dist/route/route.service.js.map +1 -1
  39. package/dist/route/route.service.spec.js +43 -27
  40. package/dist/route/route.service.spec.js.map +1 -1
  41. package/dist/setting/setting.controller.d.ts.map +1 -1
  42. package/dist/setting/setting.controller.js +2 -2
  43. package/dist/setting/setting.controller.js.map +1 -1
  44. package/dist/setting/setting.service.d.ts +4 -1
  45. package/dist/setting/setting.service.d.ts.map +1 -1
  46. package/dist/setting/setting.service.js +34 -4
  47. package/dist/setting/setting.service.js.map +1 -1
  48. package/package.json +3 -1
  49. package/src/admin.module.ts +2 -0
  50. package/src/dto/with-locale.dto.ts +1 -1
  51. package/src/locale/locale.service.ts +75 -81
  52. package/src/menu/menu.controller.ts +2 -2
  53. package/src/menu/menu.service.ts +1 -1
  54. package/src/role/decorators/role.decorator.ts +4 -1
  55. package/src/role/role.controller.ts +2 -2
  56. package/src/role/role.service.ts +1 -1
  57. package/src/route/route.controller.ts +4 -4
  58. package/src/route/route.service.spec.ts +4 -3
  59. package/src/route/route.service.ts +2 -2
  60. package/src/setting/setting.controller.ts +1 -1
  61. package/src/setting/setting.service.ts +44 -6
@@ -1 +1 @@
1
- {"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":"AAYA,qBAwBa,WAAW;CAAG"}
1
+ {"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":"AAaA,qBAyBa,WAAW;CAAG"}
@@ -7,6 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.AdminModule = void 0;
10
+ const file_1 = require("@hedhog/file");
10
11
  const pagination_1 = require("@hedhog/pagination");
11
12
  const prisma_1 = require("@hedhog/prisma");
12
13
  const common_1 = require("@nestjs/common");
@@ -34,6 +35,7 @@ exports.AdminModule = AdminModule = __decorate([
34
35
  (0, common_1.forwardRef)(() => setting_module_1.SettingModule),
35
36
  (0, common_1.forwardRef)(() => locale_1.LocaleModule),
36
37
  (0, common_1.forwardRef)(() => user_module_1.UserModule),
38
+ (0, common_1.forwardRef)(() => file_1.FileModule),
37
39
  ],
38
40
  exports: [
39
41
  user_module_1.UserModule,
@@ -1 +1 @@
1
- {"version":3,"file":"admin.module.js","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mDAAsD;AACtD,2CAA8C;AAC9C,2CAAoD;AACpD,oDAAgD;AAChD,qCAAwC;AACxC,oDAAgD;AAChD,oDAAgD;AAChD,uDAAmD;AACnD,0DAAsD;AACtD,6DAAyD;AACzD,oDAAgD;AA0BzC,IAAM,WAAW,GAAjB,MAAM,WAAW;CAAG,CAAA;AAAd,kCAAW;sBAAX,WAAW;IAxBvB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,6BAAgB,CAAC;YAClC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC;YAC7B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC;YAC/B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;SAC7B;QACD,OAAO,EAAE;YACP,wBAAU;YACV,wBAAU;YACV,0BAAW;YACX,wBAAU;YACV,wBAAU;YACV,8BAAa;YACb,4BAAY;YACZ,qBAAY;SACb;KACF,CAAC;GACW,WAAW,CAAG"}
1
+ {"version":3,"file":"admin.module.js","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAA0C;AAC1C,mDAAsD;AACtD,2CAA8C;AAC9C,2CAAoD;AACpD,oDAAgD;AAChD,qCAAwC;AACxC,oDAAgD;AAChD,oDAAgD;AAChD,uDAAmD;AACnD,0DAAsD;AACtD,6DAAyD;AACzD,oDAAgD;AA2BzC,IAAM,WAAW,GAAjB,MAAM,WAAW;CAAG,CAAA;AAAd,kCAAW;sBAAX,WAAW;IAzBvB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,6BAAgB,CAAC;YAClC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC;YAC7B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC;YAC/B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iBAAU,CAAC;SAC7B;QACD,OAAO,EAAE;YACP,wBAAU;YACV,wBAAU;YACV,0BAAW;YACX,wBAAU;YACV,wBAAU;YACV,8BAAa;YACb,4BAAY;YACZ,qBAAY;SACb;KACF,CAAC;GACW,WAAW,CAAG"}
@@ -1,4 +1,4 @@
1
1
  export declare class WithLocaleDTO {
2
- locale: Record<string, string>;
2
+ locale: Record<string, Record<string, string>>;
3
3
  }
4
4
  //# sourceMappingURL=with-locale.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"with-locale.dto.d.ts","sourceRoot":"","sources":["../../src/dto/with-locale.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,aAAa;IAIxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC"}
1
+ {"version":3,"file":"with-locale.dto.d.ts","sourceRoot":"","sources":["../../src/dto/with-locale.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,aAAa;IAIxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAChD"}
@@ -1 +1 @@
1
- {"version":3,"file":"with-locale.dto.js","sourceRoot":"","sources":["../../src/dto/with-locale.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,MAAa,aAAa;CAKzB;AALD,sCAKC;AADC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;6CACA"}
1
+ {"version":3,"file":"with-locale.dto.js","sourceRoot":"","sources":["../../src/dto/with-locale.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,MAAa,aAAa;CAKzB;AALD,sCAKC;AADC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;6CACgB"}
@@ -26,7 +26,7 @@ export declare class LocaleService {
26
26
  }): Promise<any>;
27
27
  delete({ ids }: DeleteDTO): Promise<any>;
28
28
  private getTableNameTranslations;
29
- createModelWithLocale<T>(modelName: string, foreginKeyName: string, data: T, locale: Record<string, string>): Promise<any>;
30
- updateModelWithLocale<T extends any>(modelName: string, foreginKeyName: string, id: number, data: T, locale: Record<string, string>): Promise<any>;
29
+ createModelWithLocale<T>(modelName: string, foreignKeyName: string, data: T, locale: Record<string, Record<string, string>>): Promise<any>;
30
+ updateModelWithLocale<T>(modelName: string, foreignKeyName: string, id: number, data: T, locale: Record<string, Record<string, string>>): Promise<any>;
31
31
  }
32
32
  //# sourceMappingURL=locale.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"locale.service.d.ts","sourceRoot":"","sources":["../../src/locale/locale.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,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,aAAa;IAKtB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IANpC,OAAO,CAAC,KAAK,CAAW;gBAIL,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE;IA0B1B,UAAU,CAAC,aAAa,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IAiEvE,WAAW,CAAC,MAAM,EAAE,MAAM;;;;;IAWpB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAwCrD,GAAG,CAAC,aAAa,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IA0D1D,SAAS,CAAC,IAAI,EAAE,MAAM;IAStB,OAAO,CAAC,QAAQ,EAAE,MAAM;IAMxB,MAAM,CAAC,IAAI,EAAE,SAAS;IAMtB,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,C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CAAC,aAAa,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IA0D1D,SAAS,CAAC,IAAI,EAAE,MAAM;IAStB,OAAO,CAAC,QAAQ,EAAE,MAAM;IAMxB,MAAM,CAAC,IAAI,EAAE,SAAS;IAMtB,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE;IAOpD,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS;IAgB/B,OAAO,CAAC,wBAAwB;IAI1B,qBAAqB,CAAC,CAAC,EAC3B,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,CAAC,EACP,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IA0C1C,qBAAqB,CAAC,CAAC,EAC3B,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,CAAC,EACP,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAyCjD"}
@@ -213,70 +213,70 @@ let LocaleService = class LocaleService {
213
213
  });
214
214
  }
215
215
  getTableNameTranslations(modelName) {
216
- const modelNames = modelName.split('_');
217
- modelNames.push('locale');
218
- return modelNames.join('_');
216
+ return `${modelName}_locale`;
219
217
  }
220
- async createModelWithLocale(modelName, foreginKeyName, data, locale) {
221
- const model = await this.prismaService[modelName].create({
222
- data,
223
- });
224
- if (locale) {
225
- for (const localeCode of Object.keys(locale)) {
226
- const locale = await this.getByCode(localeCode);
227
- const data = {};
228
- for (const key of Object.keys(locale[localeCode])) {
229
- data[key] = locale[localeCode][key];
230
- }
231
- await this.prismaService[this.getTableNameTranslations(modelName)].create({
232
- data: Object.assign({ [foreginKeyName]: model.id, locale_id: locale.id }, data),
233
- });
218
+ async createModelWithLocale(modelName, foreignKeyName, data, locale) {
219
+ try {
220
+ const model = await this.prismaService[modelName].create({ data });
221
+ if (locale) {
222
+ await Promise.all(Object.entries(locale).map(async ([localeCode, localeData]) => {
223
+ const localeRecord = await this.getByCode(localeCode);
224
+ const localeEntry = Object.assign({ [foreignKeyName]: model.id, locale_id: localeRecord.id }, localeData);
225
+ await this.prismaService[this.getTableNameTranslations(modelName)].create({
226
+ data: localeEntry,
227
+ });
228
+ }));
234
229
  }
235
- }
236
- return this.prismaService[modelName].findUnique({
237
- where: { id: model.id },
238
- include: {
239
- [this.getTableNameTranslations(modelName)]: {
240
- where: {
241
- locale: {
242
- enabled: true,
243
- },
244
- },
245
- include: {
246
- locale: {
247
- select: {
248
- code: true,
249
- },
250
- },
230
+ return this.prismaService[modelName].findUnique({
231
+ where: { id: model.id },
232
+ include: {
233
+ [this.getTableNameTranslations(modelName)]: {
234
+ where: { locale: { enabled: true } },
235
+ include: { locale: { select: { code: true } } },
251
236
  },
252
237
  },
253
- },
254
- });
238
+ });
239
+ }
240
+ catch (error) {
241
+ if (error.message.includes('Unique constraint failed')) {
242
+ throw new common_1.BadRequestException('Data already exists.');
243
+ }
244
+ else {
245
+ throw new common_1.BadRequestException(error);
246
+ }
247
+ }
255
248
  }
256
- async updateModelWithLocale(modelName, foreginKeyName, id, data, locale) {
257
- if (locale) {
258
- for (const localeCode of Object.keys(locale)) {
259
- const locale = await this.getByCode(localeCode);
260
- const data = {};
261
- for (const key of Object.keys(locale[localeCode])) {
262
- data[key] = locale[localeCode][key];
263
- }
264
- await this.prismaService[this.getTableNameTranslations(modelName)].upsert({
265
- where: {
266
- [`${foreginKeyName}_locale_id`]: {
267
- [foreginKeyName]: id,
268
- locale_id: locale.id,
249
+ async updateModelWithLocale(modelName, foreignKeyName, id, data, locale) {
250
+ try {
251
+ if (locale) {
252
+ await Promise.all(Object.entries(locale).map(async ([localeCode, localeData]) => {
253
+ const localeRecord = await this.getByCode(localeCode);
254
+ const localeEntry = Object.assign({ [foreignKeyName]: id, locale_id: localeRecord.id }, localeData);
255
+ await this.prismaService[this.getTableNameTranslations(modelName)].upsert({
256
+ where: {
257
+ [`${foreignKeyName}_locale_id`]: {
258
+ [foreignKeyName]: id,
259
+ locale_id: localeRecord.id,
260
+ },
269
261
  },
270
- },
271
- create: Object.assign({ [foreginKeyName]: id, locale_id: locale.id }, data),
272
- update: Object.assign({}, data),
273
- });
262
+ create: localeEntry,
263
+ update: localeData,
264
+ });
265
+ }));
266
+ }
267
+ return this.prismaService[modelName].update({
268
+ where: { id },
269
+ data,
270
+ });
271
+ }
272
+ catch (error) {
273
+ if (error.message.includes('Unique constraint failed')) {
274
+ throw new common_1.BadRequestException('Data already exists.');
275
+ }
276
+ else {
277
+ throw new common_1.BadRequestException(error);
274
278
  }
275
279
  }
276
- return this.prismaService[modelName].update({
277
- where: { id },
278
- data,
279
- });
280
280
  }
281
281
  };
282
282
  exports.LocaleService = LocaleService;
@@ -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,MAAM,CAAC,UAAU,CAAC;YACzC,KAAK,EAAE;gBACL,OAAO,EAAE,IAAI;aACd;YACD,IAAI,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cAAc,CAAC,EAAE,EAAE;gCACpB,SAAS,EAAE,YAAY,CAAC,EAAE;6BAC3B;yBACF;wBACD,MAAM,EAAE,WAAW;wBACnB,MAAM,EAAE,UAAU;qBACnB,CAAC,CAAC;gBACL,CAAC,CAAC,CACH,CAAC;YACJ,CAAC;YAED,OAAO,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC;gBAC1C,KAAK,EAAE,EAAE,EAAE,EAAE;gBACb,IAAI;aACL,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YACpB,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC,EAAE,CAAC;gBACvD,MAAM,IAAI,4BAAmB,CAAC,sBAAsB,CAAC,CAAC;YACxD,CAAC;iBAAM,CAAC;gBACN,MAAM,IAAI,4BAAmB,CAAC,KAAK,CAAC,CAAC;YACvC,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AA9VY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,sBAAa,CAAC,CAAC,CAAA;IAEvC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAiB,CAAC,CAAC,CAAA;qCADZ,sBAAa;QAET,8BAAiB;GAP5C,aAAa,CA8VzB"}
@@ -10,7 +10,7 @@ export declare class MenuController {
10
10
  getSystemMenu({ id }: {
11
11
  id: any;
12
12
  }, locale: any): Promise<any[]>;
13
- getMenu(paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
13
+ list(paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
14
14
  listRoles(menuId: number, paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
15
15
  listScreens(menuId: number, paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
16
16
  updateRoles(menuId: number, data: UpdateIdsDTO): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"menu.controller.d.ts","sourceRoot":"","sources":["../../src/menu/menu.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAEa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,WAAW;IAIrC,aAAa,CAAS,EAAE,EAAE,EAAE;;KAAA,EAAY,MAAM,KAAA;IAK9C,OAAO,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;IAKxD,SAAS,CACkB,MAAM,EAAE,MAAM,EAC/B,gBAAgB,KAAA,EACpB,MAAM,KAAA;IAMZ,WAAW,CACgB,MAAM,EAAE,MAAM,EAC/B,gBAAgB,KAAA,EACpB,MAAM,KAAA;IAMZ,WAAW,CACgB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,aAAa,CACc,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,IAAI,CAAgC,MAAM,EAAE,MAAM;IAKlD,MAAM,CAAS,IAAI,EAAE,SAAS;IAK9B,MAAM,CACqB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;IAK9B,WAAW,CAAS,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAGzD"}
1
+ {"version":3,"file":"menu.controller.d.ts","sourceRoot":"","sources":["../../src/menu/menu.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAEa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,WAAW;IAIrC,aAAa,CAAS,EAAE,EAAE,EAAE;;KAAA,EAAY,MAAM,KAAA;IAK9C,IAAI,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;IAKrD,SAAS,CACkB,MAAM,EAAE,MAAM,EAC/B,gBAAgB,KAAA,EACpB,MAAM,KAAA;IAMZ,WAAW,CACgB,MAAM,EAAE,MAAM,EAC/B,gBAAgB,KAAA,EACpB,MAAM,KAAA;IAMZ,WAAW,CACgB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,aAAa,CACc,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,IAAI,CAAgC,MAAM,EAAE,MAAM;IAKlD,MAAM,CAAS,IAAI,EAAE,SAAS;IAK9B,MAAM,CACqB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;IAK9B,WAAW,CAAS,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAGzD"}
@@ -31,8 +31,8 @@ let MenuController = class MenuController {
31
31
  async getSystemMenu({ id }, locale) {
32
32
  return this.menuService.getSystemMenu(locale, id);
33
33
  }
34
- async getMenu(paginationParams, locale) {
35
- return this.menuService.getMenu(locale, paginationParams);
34
+ async list(paginationParams, locale) {
35
+ return this.menuService.list(locale, paginationParams);
36
36
  }
37
37
  async listRoles(menuId, paginationParams, locale) {
38
38
  return this.menuService.listRoles(locale, menuId, paginationParams);
@@ -81,7 +81,7 @@ __decorate([
81
81
  __metadata("design:type", Function),
82
82
  __metadata("design:paramtypes", [Object, Object]),
83
83
  __metadata("design:returntype", Promise)
84
- ], MenuController.prototype, "getMenu", null);
84
+ ], MenuController.prototype, "list", null);
85
85
  __decorate([
86
86
  (0, common_1.Get)(':menuId/role'),
87
87
  __param(0, (0, common_1.Param)('menuId', common_1.ParseIntPipe)),
@@ -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,CAAa;IACxC,CAAC;IAGE,AAAN,KAAK,CAAC,aAAa,CAAS,EAAE,EAAE,EAAE,EAAY,MAAM;QAClD,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACpD,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAe,gBAAgB,EAAY,MAAM;QAC5D,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC5D,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CACkB,MAAc,EAC/B,gBAAgB,EACpB,MAAM;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC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E,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"}
@@ -15,7 +15,7 @@ export declare class MenuService {
15
15
  listRoles(locale: string, menuId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
16
16
  getMenus(locale: string, userId: number, menuId?: number): Promise<any[]>;
17
17
  getSystemMenu(locale: string, userId: number): Promise<any[]>;
18
- getMenu(locale: string, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
18
+ list(locale: string, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
19
19
  get(menuId: number): Promise<any>;
20
20
  create({ name, url, icon, order, menuId }: CreateDTO): Promise<any>;
21
21
  update({ id, data }: {
@@ -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;AAQ/C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,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AC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE;IAOpD,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS;IAgBzB,WAAW,CAAC,EAAE,GAAG,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAsBpD"}
@@ -145,7 +145,7 @@ let MenuService = class MenuService {
145
145
  async getSystemMenu(locale, userId) {
146
146
  return this.getMenus(locale, userId);
147
147
  }
148
- async getMenu(locale, paginationParams) {
148
+ async list(locale, paginationParams) {
149
149
  const fields = ['url', 'icon'];
150
150
  const OR = this.prismaService.createInsensitiveSearch(fields, paginationParams);
151
151
  return this.paginationService.paginate(this.prismaService.menu, paginationParams, {
@@ -1 +1 @@
1
- {"version":3,"file":"menu.service.js","sourceRoot":"","sources":["../../src/menu/menu.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAsE;AACtE,2CAA+C;AAC/C,yCAAiD;AACjD,2CAKwB;AAQjB,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YAEmB,aAA4B,EAE5B,iBAAoC;QAFpC,kBAAa,GAAb,aAAa,CAAe;QAE5B,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,KAAK,CAAC,aAAa,CAAC,MAAc,EAAE,IAAkB;QACpD,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,UAAU,CAAC;YAC9C,KAAK,EAAE;gBACL,OAAO,EAAE,MAAM;aAChB;SACF,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,UAAU,CAAC;YAC/C,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;gBAChC,OAAO,EAAE,MAAM;gBACf,SAAS,EAAE,QAAQ;aACpB,CAAC,CAAC;YACH,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;IACL,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,M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,3 +1,3 @@
1
1
  export declare const WITH_ROLE = "withRole";
2
- export declare const Role: () => import("@nestjs/common").CustomDecorator<string>;
2
+ export declare function Role(): import("@nestjs/common").CustomDecorator<string>;
3
3
  //# sourceMappingURL=role.decorator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"role.decorator.d.ts","sourceRoot":"","sources":["../../../src/role/decorators/role.decorator.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,aAAa,CAAC;AACpC,eAAO,MAAM,IAAI,wDAAqC,CAAC"}
1
+ {"version":3,"file":"role.decorator.d.ts","sourceRoot":"","sources":["../../../src/role/decorators/role.decorator.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,aAAa,CAAC;AAEpC,wBAAgB,IAAI,qDAEnB"}
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Role = exports.WITH_ROLE = void 0;
3
+ exports.WITH_ROLE = void 0;
4
+ exports.Role = Role;
4
5
  const common_1 = require("@nestjs/common");
5
6
  exports.WITH_ROLE = 'withRole';
6
- const Role = () => (0, common_1.SetMetadata)(exports.WITH_ROLE, true);
7
- exports.Role = Role;
7
+ function Role() {
8
+ return (0, common_1.SetMetadata)(exports.WITH_ROLE, true);
9
+ }
8
10
  //# sourceMappingURL=role.decorator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"role.decorator.js","sourceRoot":"","sources":["../../../src/role/decorators/role.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAA6C;AAEhC,QAAA,SAAS,GAAG,UAAU,CAAC;AAC7B,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,IAAA,oBAAW,EAAC,iBAAS,EAAE,IAAI,CAAC,CAAC;AAA1C,QAAA,IAAI,QAAsC"}
1
+ {"version":3,"file":"role.decorator.js","sourceRoot":"","sources":["../../../src/role/decorators/role.decorator.ts"],"names":[],"mappings":";;;AAIA,oBAEC;AAND,2CAA6C;AAEhC,QAAA,SAAS,GAAG,UAAU,CAAC;AAEpC,SAAgB,IAAI;IAClB,OAAO,IAAA,oBAAW,EAAC,iBAAS,EAAE,IAAI,CAAC,CAAC;AACtC,CAAC"}
@@ -6,7 +6,7 @@ import { RoleService } from './role.service';
6
6
  export declare class RoleController {
7
7
  private readonly roleService;
8
8
  constructor(roleService: RoleService);
9
- getRoles(paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
9
+ list(paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
10
10
  listUsers(paginationParams: any, roleId: number): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
11
11
  listMenus(paginationParams: any, roleId: number, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
12
12
  listRoutes(paginationParams: any, roleId: number): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"role.controller.d.ts","sourceRoot":"","sources":["../../src/role/role.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAEa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,WAAW;IAIrC,QAAQ,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;IAKzD,SAAS,CACC,gBAAgB,KAAA,EACC,MAAM,EAAE,MAAM;IAMzC,SAAS,CACC,gBAAgB,KAAA,EACC,MAAM,EAAE,MAAM,EACnC,MAAM,KAAA;IAMZ,UAAU,CACA,gBAAgB,KAAA,EACC,MAAM,EAAE,MAAM;IAMzC,WAAW,CACD,gBA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AW,CACgB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,WAAW,CACgB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,YAAY,CACe,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,aAAa,CACc,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,IAAI,CAAgC,MAAM,EAAE,MAAM,EAAY,MAAM,KAAA;IAKpE,MAAM,CAAS,IAAI,EAAE,SAAS;IAK9B,MAAM,CACqB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
@@ -26,8 +26,8 @@ let RoleController = class RoleController {
26
26
  constructor(roleService) {
27
27
  this.roleService = roleService;
28
28
  }
29
- async getRoles(paginationParams, locale) {
30
- return this.roleService.getRoles(locale, paginationParams);
29
+ async list(paginationParams, locale) {
30
+ return this.roleService.list(locale, paginationParams);
31
31
  }
32
32
  async listUsers(paginationParams, roleId) {
33
33
  return this.roleService.listUsers(roleId, paginationParams);
@@ -77,7 +77,7 @@ __decorate([
77
77
  __metadata("design:type", Function),
78
78
  __metadata("design:paramtypes", [Object, Object]),
79
79
  __metadata("design:returntype", Promise)
80
- ], RoleController.prototype, "getRoles", null);
80
+ ], RoleController.prototype, "list", null);
81
81
  __decorate([
82
82
  (0, common_1.Get)(':roleId/user'),
83
83
  __param(0, (0, pagination_1.Pagination)()),
@@ -1 +1 @@
1
- {"version":3,"file":"role.controller.js","sourceRoot":"","sources":["../../src/role/role.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAWwB;AACxB,kDAA8C;AAC9C,0DAAqD;AACrD,sCAAmC;AACnC,sEAAyD;AACzD,iDAA6C;AAC7C,iDAA6C;AAC7C,iDAA6C;AAItC,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAEmB,WAAwB;QAAxB,gBAAW,GA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 -18,7 +18,7 @@ export declare class RoleService {
18
18
  listMenus(locale: string, roleId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
19
19
  listRoutes(roleId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
20
20
  listScreens(locale: string, roleId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
21
- getRoles(locale: string, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
21
+ list(locale: string, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
22
22
  get(locale: string, roleId: number): Promise<any>;
23
23
  create({ slug, locale }: CreateDTO): Promise<any>;
24
24
  update({ id, data: { locale, slug }, }: {
@@ -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,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;IAUK,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS;CAehC"}
@@ -160,7 +160,7 @@ let RoleService = class RoleService {
160
160
  },
161
161
  }, 'screen_locale');
162
162
  }
163
- async getRoles(locale, paginationParams) {
163
+ async list(locale, paginationParams) {
164
164
  const fields = [];
165
165
  const OR = this.prismaService.createInsensitiveSearch(fields, paginationParams);
166
166
  return this.paginationService.paginate(this.prismaService.role, paginationParams, {
@@ -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,aAA4B,EAE5B,iBAAoC,EAEpC,aAA4B;QAJ5B,kBAAa,GAAb,aAAa,CAAe;QAE5B,sBAAiB,GAAjB,iBAAiB,CAAmB;QAEpC,kBAAa,GAAb,aAAa,CAAe;IAC5C,CAAC;IAEJ,KAAK,CAAC,WAAW,CAAC,MAAc,EAAE,EAAE,GAAG,EAAgB;QACrD,MAAM,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,UAAU,CAAC;YAC5C,KAAK,EAAE;gBACL,OAAO,EAAE,MAAM;aAChB;SACF,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,UAAU,CAAC;YAC7C,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBACzB,OAAO,EAAE,MAAM;gBACf,OAAO,EAAE,MAAM;aAChB,CAAC,CAAC;YACH,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,MAAc,EAAE,IAAkB;QACpD,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,UAAU,CAAC;YAC9C,KAAK,EAAE;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AA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,sBAAa,CAAC,CAAC,CAAA;qCAHR,sBAAa;QAET,8BAAiB;QAErB,sBAAa;GAPpC,WAAW,CA6RvB"}
@@ -7,8 +7,8 @@ import { RouteService } from './route.service';
7
7
  export declare class RouteController {
8
8
  private readonly routeService;
9
9
  constructor(routeService: RouteService);
10
- getRoutes(paginationParams: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
11
- getRouteById(routeId: number): Promise<any>;
10
+ list(paginationParams: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
11
+ get(routeId: number): Promise<any>;
12
12
  create({ url, method }: CreateDTO): Promise<any>;
13
13
  update(routeId: number, data: UpdateDTO): Promise<any>;
14
14
  delete(data: DeleteDTO): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"route.controller.d.ts","sourceRoot":"","sources":["../../src/route/route.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAa/D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBAEa,eAAe;IAGxB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,YAAY;IAIvC,SAAS,CAAe,gBAAgB,KAAA;IAKxC,YAAY,CAAiC,OAAO,EAAE,MAAM;IAK5D,MAAM,CAAS,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,SAAS;IAKzC,MAAM,CACsB,OAAO,EAAE,MAAM,EACvC,IAAI,EAAE,SAAS;IAMnB,MAAM,CAAS,IAAI,EAAE,SAAS;IAK9B,SAAS,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,EAAE,MAAM,EACvC,IAAI,EAAE,YAAY;CAI7B"}
@@ -26,11 +26,11 @@ let RouteController = class RouteController {
26
26
  constructor(routeService) {
27
27
  this.routeService = routeService;
28
28
  }
29
- async getRoutes(paginationParams) {
30
- return this.routeService.getRoutes(paginationParams);
29
+ async list(paginationParams) {
30
+ return this.routeService.list(paginationParams);
31
31
  }
32
- async getRouteById(routeId) {
33
- return this.routeService.getRouteById(routeId);
32
+ async get(routeId) {
33
+ return this.routeService.get(routeId);
34
34
  }
35
35
  async create({ url, method }) {
36
36
  return this.routeService.create({ url, method });
@@ -61,14 +61,14 @@ __decorate([
61
61
  __metadata("design:type", Function),
62
62
  __metadata("design:paramtypes", [Object]),
63
63
  __metadata("design:returntype", Promise)
64
- ], RouteController.prototype, "getRoutes", null);
64
+ ], RouteController.prototype, "list", null);
65
65
  __decorate([
66
66
  (0, common_1.Get)(':routeId'),
67
67
  __param(0, (0, common_1.Param)('routeId', common_1.ParseIntPipe)),
68
68
  __metadata("design:type", Function),
69
69
  __metadata("design:paramtypes", [Number]),
70
70
  __metadata("design:returntype", Promise)
71
- ], RouteController.prototype, "getRouteById", null);
71
+ ], RouteController.prototype, "get", null);
72
72
  __decorate([
73
73
  (0, common_1.Post)(),
74
74
  __param(0, (0, common_1.Body)()),
@@ -1 +1 @@
1
- {"version":3,"file":"route.controller.js","sourceRoot":"","sources":["../../src/route/route.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAA+D;AAC/D,2CAWwB;AACxB,kDAA8C;AAC9C,0DAAqD;AACrD,sCAAmC;AACnC,sEAAyD;AACzD,iDAA6C;AAC7C,iDAA6C;AAC7C,mDAA+C;AAIxC,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAEmB,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;IAC1C,CAAC;IAGE,AAAN,KAAK,CAAC,SAAS,CAAe,gBAAgB;QAC5C,OAAO,IAAI,CAAC,YAAY,CAAC,SAAS,CA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