@hedhog/admin 0.0.31 → 0.0.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. package/dist/menu/menu.controller.d.ts +2 -2
  2. package/dist/menu/menu.controller.d.ts.map +1 -1
  3. package/dist/menu/menu.controller.js +8 -6
  4. package/dist/menu/menu.controller.js.map +1 -1
  5. package/dist/menu/menu.service.d.ts +2 -2
  6. package/dist/menu/menu.service.d.ts.map +1 -1
  7. package/dist/menu/menu.service.js +25 -4
  8. package/dist/menu/menu.service.js.map +1 -1
  9. package/dist/role/role.controller.d.ts +2 -2
  10. package/dist/role/role.controller.d.ts.map +1 -1
  11. package/dist/role/role.controller.js +8 -6
  12. package/dist/role/role.controller.js.map +1 -1
  13. package/dist/role/role.service.d.ts +2 -2
  14. package/dist/role/role.service.d.ts.map +1 -1
  15. package/dist/role/role.service.js +24 -4
  16. package/dist/role/role.service.js.map +1 -1
  17. package/dist/route/route.controller.d.ts +2 -2
  18. package/dist/route/route.controller.d.ts.map +1 -1
  19. package/dist/route/route.controller.js +9 -6
  20. package/dist/route/route.controller.js.map +1 -1
  21. package/dist/route/route.service.d.ts +2 -2
  22. package/dist/route/route.service.d.ts.map +1 -1
  23. package/dist/route/route.service.js +25 -4
  24. package/dist/route/route.service.js.map +1 -1
  25. package/dist/screen/screen.controller.d.ts +1 -1
  26. package/dist/screen/screen.controller.d.ts.map +1 -1
  27. package/dist/screen/screen.controller.js +3 -4
  28. package/dist/screen/screen.controller.js.map +1 -1
  29. package/dist/screen/screen.service.d.ts +1 -1
  30. package/dist/screen/screen.service.d.ts.map +1 -1
  31. package/dist/screen/screen.service.js +1 -1
  32. package/dist/screen/screen.service.js.map +1 -1
  33. package/package.json +1 -1
@@ -11,8 +11,8 @@ export declare class MenuController {
11
11
  id: any;
12
12
  }, locale: any): Promise<any[]>;
13
13
  getMenu(paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
14
- listRoles(menuId: number, paginationParams: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
15
- listScreens(menuId: number, paginationParams: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
14
+ listRoles(menuId: number, paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
15
+ listScreens(menuId: number, paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
16
16
  updateRoles(menuId: number, data: UpdateIdsDTO): Promise<any>;
17
17
  updateScreens(menuId: number, data: UpdateIdsDTO): Promise<any>;
18
18
  show(menuId: number): 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,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAI3C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,qBAGa,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;IAM1B,WAAW,CACgB,MAAM,EAAE,MAAM,EAC/B,gBAAgB,KAAA;IAM1B,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,CA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S;IAK9B,WAAW,CAAS,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAGzD"}
@@ -35,11 +35,11 @@ let MenuController = class MenuController {
35
35
  async getMenu(paginationParams, locale) {
36
36
  return this.menuService.getMenu(locale, paginationParams);
37
37
  }
38
- async listRoles(menuId, paginationParams) {
39
- return this.menuService.listRoles(menuId, paginationParams);
38
+ async listRoles(menuId, paginationParams, locale) {
39
+ return this.menuService.listRoles(locale, menuId, paginationParams);
40
40
  }
41
- async listScreens(menuId, paginationParams) {
42
- return this.menuService.listScreens(menuId, paginationParams);
41
+ async listScreens(menuId, paginationParams, locale) {
42
+ return this.menuService.listScreens(locale, menuId, paginationParams);
43
43
  }
44
44
  async updateRoles(menuId, data) {
45
45
  return this.menuService.updateRoles(menuId, data);
@@ -87,16 +87,18 @@ __decorate([
87
87
  (0, common_1.Get)(':menuId/roles'),
88
88
  __param(0, (0, common_1.Param)('menuId', common_1.ParseIntPipe)),
89
89
  __param(1, (0, pagination_1.Pagination)()),
90
+ __param(2, (0, locale_1.Locale)()),
90
91
  __metadata("design:type", Function),
91
- __metadata("design:paramtypes", [Number, Object]),
92
+ __metadata("design:paramtypes", [Number, Object, Object]),
92
93
  __metadata("design:returntype", Promise)
93
94
  ], MenuController.prototype, "listRoles", null);
94
95
  __decorate([
95
96
  (0, common_1.Get)(':menuId/screens'),
96
97
  __param(0, (0, common_1.Param)('menuId', common_1.ParseIntPipe)),
97
98
  __param(1, (0, pagination_1.Pagination)()),
99
+ __param(2, (0, locale_1.Locale)()),
98
100
  __metadata("design:type", Function),
99
- __metadata("design:paramtypes", [Number, Object]),
101
+ __metadata("design:paramtypes", [Number, Object, Object]),
100
102
  __metadata("design:returntype", Promise)
101
103
  ], MenuController.prototype, "listScreens", null);
102
104
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"menu.controller.js","sourceRoot":"","sources":["../../src/menu/menu.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mD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Screens(menuId: number, data: UpdateIdsDTO): Promise<any>;
13
13
  updateRoles(menuId: number, data: UpdateIdsDTO): Promise<any>;
14
- listScreens(menuId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
15
- listRoles(menuId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
14
+ listScreens(locale: string, menuId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
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
18
  getMenu(locale: string, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
@@ -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,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AAC;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,EAAE,MAAM;IAMlB,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,SAAS;IAMpD,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;IAgBzB,WAAW,CAAC,EAAE,GAAG,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAsBpD"}
@@ -50,9 +50,19 @@ let MenuService = class MenuService {
50
50
  skipDuplicates: true,
51
51
  });
52
52
  }
53
- async listScreens(menuId, paginationParams) {
53
+ async listScreens(locale, menuId, paginationParams) {
54
54
  return this.paginationService.paginate(this.prismaService.screens, paginationParams, {
55
55
  include: {
56
+ screen_translations: {
57
+ where: {
58
+ locales: {
59
+ code: locale,
60
+ },
61
+ },
62
+ select: {
63
+ name: true,
64
+ },
65
+ },
56
66
  menu_screens: {
57
67
  where: {
58
68
  menu_id: menuId,
@@ -63,11 +73,22 @@ let MenuService = class MenuService {
63
73
  },
64
74
  },
65
75
  },
66
- });
76
+ }, 'screen_translations');
67
77
  }
68
- async listRoles(menuId, paginationParams) {
78
+ async listRoles(locale, menuId, paginationParams) {
69
79
  return this.paginationService.paginate(this.prismaService.roles, paginationParams, {
70
80
  include: {
81
+ role_translations: {
82
+ where: {
83
+ locales: {
84
+ code: locale,
85
+ },
86
+ },
87
+ select: {
88
+ name: true,
89
+ description: true,
90
+ },
91
+ },
71
92
  role_menus: {
72
93
  where: {
73
94
  menu_id: menuId,
@@ -78,7 +99,7 @@ let MenuService = class MenuService {
78
99
  },
79
100
  },
80
101
  },
81
- });
102
+ }, 'role_translations');
82
103
  }
83
104
  async getMenus(locale, userId, menuId = 0) {
84
105
  if (menuId === 0) {
@@ -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,2CAKwB;AAMxB,yCAAiD;AAG1C,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,YAAY,CAAC,UAAU,CAAC;YAC/C,KAAK,EAAE;gBACL,OAAO,EAAE,MAAM;aAChB;SACF,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,UAAU,CAAC;YAChD,IAAI,EAAE,IAAI,CAAC,GAAG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mB,CAC3B,8CAA8C,CAC/C,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC;YACzC,KAAK,EAAE;gBACL,EAAE,EAAE;oBACF,EAAE,EAAE,GAAG;iBACR;aACF;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,EAAE,GAAG,EAAY;QACjC,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC;YACjD,KAAK,EAAE;gBACL,EAAE,EAAE;oBACF,EAAE,EAAE,GAAG;iBACR;aACF;SACF,CAAC,CAAC;QAEH,IAAI,KAAK,KAAK,GAAG,CAAC,MAAM,EAAE,CAAC;YACzB,MAAM,IAAI,4BAAmB,CAAC,gBAAgB,CAAC,CAAC;QAClD,CAAC;QAED,MAAM,OAAO,CAAC,GAAG,CACf,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,CACpB,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC;YAC9B,KAAK,EAAE,EAAE,EAAE,EAAE;YACb,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,EAAE;SAC3B,CAAC,CACH,CACF,CAAC;IACJ,CAAC;CACF,CAAA;AAtPY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;IAGR,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;GAL5C,WAAW,CAsPvB"}
@@ -8,9 +8,9 @@ export declare class RoleController {
8
8
  constructor(roleService: RoleService);
9
9
  getRoles(paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
10
10
  listUsers(paginationParams: any, roleId: number): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
11
- listMenus(paginationParams: any, roleId: number): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
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>>;
13
- listScreens(paginationParams: any, roleId: number): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
13
+ listScreens(paginationParams: any, roleId: number, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
14
14
  updateUsers(roleId: number, data: UpdateIdsDTO): Promise<any>;
15
15
  updateMenus(roleId: number, data: UpdateIdsDTO): Promise<any>;
16
16
  updateRoutes(roleId: number, data: UpdateIdsDTO): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"role.controller.d.ts","sourceRoot":"","sources":["../../src/role/role.controller.ts"],"names":[],"mappings":"AAcA,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,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,qBAGa,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;IAMzC,UAAU,CACA,gBAAgB,KAAA,EACC,MAAM,EAAE,MAAM;IAMzC,WAAW,CACD,gBAAgB,KAAA,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AAY;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;IAKxD,MAAM,CAAS,IAAI,EAAE,SAAS;IAKxB,MAAM,CACqB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
@@ -33,14 +33,14 @@ let RoleController = class RoleController {
33
33
  async listUsers(paginationParams, roleId) {
34
34
  return this.roleService.listUsers(roleId, paginationParams);
35
35
  }
36
- async listMenus(paginationParams, roleId) {
37
- return this.roleService.listMenus(roleId, paginationParams);
36
+ async listMenus(paginationParams, roleId, locale) {
37
+ return this.roleService.listMenus(locale, roleId, paginationParams);
38
38
  }
39
39
  async listRoutes(paginationParams, roleId) {
40
40
  return this.roleService.listRoutes(roleId, paginationParams);
41
41
  }
42
- async listScreens(paginationParams, roleId) {
43
- return this.roleService.listScreens(roleId, paginationParams);
42
+ async listScreens(paginationParams, roleId, locale) {
43
+ return this.roleService.listScreens(locale, roleId, paginationParams);
44
44
  }
45
45
  async updateUsers(roleId, data) {
46
46
  return this.roleService.updateUsers(roleId, data);
@@ -91,8 +91,9 @@ __decorate([
91
91
  (0, common_1.Get)(':roleId/menus'),
92
92
  __param(0, (0, pagination_1.Pagination)()),
93
93
  __param(1, (0, common_1.Param)('roleId', common_1.ParseIntPipe)),
94
+ __param(2, (0, locale_1.Locale)()),
94
95
  __metadata("design:type", Function),
95
- __metadata("design:paramtypes", [Object, Number]),
96
+ __metadata("design:paramtypes", [Object, Number, Object]),
96
97
  __metadata("design:returntype", Promise)
97
98
  ], RoleController.prototype, "listMenus", null);
98
99
  __decorate([
@@ -107,8 +108,9 @@ __decorate([
107
108
  (0, common_1.Get)(':roleId/screens'),
108
109
  __param(0, (0, pagination_1.Pagination)()),
109
110
  __param(1, (0, common_1.Param)('roleId', common_1.ParseIntPipe)),
111
+ __param(2, (0, locale_1.Locale)()),
110
112
  __metadata("design:type", Function),
111
- __metadata("design:paramtypes", [Object, Number]),
113
+ __metadata("design:paramtypes", [Object, Number, Object]),
112
114
  __metadata("design:returntype", Promise)
113
115
  ], RoleController.prototype, "listScreens", null);
114
116
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"role.controller.js","sourceRoot":"","sources":["../../src/role/role.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAYwB;AACxB,iDAA6C;AAC7C,kDAA8C;AAC9C,iDAA6C;AAC7C,iDAA6C;AAC7C,gEAAmD;AACnD,0DAAsD;AACtD,0DAAqD;AACrD,2CAAwC;AAIjC,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAEmB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IACxC,CAAC;IAGE,AAAN,KAAK,CAAC,QAAQ,CAAe,gBAAgB,EAAY,MAAM;QAC7D,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC7D,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CACC,gBAAgB,EACC,MAAc;QAE7C,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC9D,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CACC,gBAAgB,EACC,MAAc;QAE7C,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC9D,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CACA,gBAAgB,EACC,MAAc;QAE7C,OAAO,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC/D,CAAC;I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Q,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;yBArGU,cAAc;IAH1B,IAAA,qBAAI,GAAE;IACN,IAAA,kBAAS,EAAC,sBAAS,CAAC;IACpB,IAAA,mBAAU,EAAC,OAAO,CAAC;IAGf,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC,CAAC,CAAA;qCACR,0BAAW;GAHhC,cAAc,CAsG1B"}
@@ -13,9 +13,9 @@ export declare class RoleService {
13
13
  updateRoutes(roleId: number, data: UpdateIdsDTO): Promise<any>;
14
14
  updateMenus(roleId: number, data: UpdateIdsDTO): Promise<any>;
15
15
  listUsers(roleId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
16
- listMenus(roleId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
16
+ listMenus(locale: string, roleId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
17
17
  listRoutes(roleId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
18
- listScreens(roleId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
18
+ listScreens(locale: string, roleId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
19
19
  getRoles(locale: string, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
20
20
  get(roleId: number): Promise<any>;
21
21
  create({ name, description }: CreateDTO): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"role.service.d.ts","sourceRoot":"","sources":["../../src/role/role.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,a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AE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IAiCxD,GAAG,CAAC,MAAM,EAAE,MAAM;IAMlB,MAAM,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,SAAS;IASvC,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;CAehC"}
@@ -92,9 +92,19 @@ let RoleService = class RoleService {
92
92
  },
93
93
  });
94
94
  }
95
- async listMenus(roleId, paginationParams) {
95
+ async listMenus(locale, roleId, paginationParams) {
96
96
  return this.paginationService.paginate(this.prismaService.menus, paginationParams, {
97
97
  include: {
98
+ menu_translations: {
99
+ where: {
100
+ locales: {
101
+ code: locale,
102
+ },
103
+ },
104
+ select: {
105
+ name: true,
106
+ },
107
+ },
98
108
  role_menus: {
99
109
  where: {
100
110
  role_id: roleId,
@@ -105,7 +115,7 @@ let RoleService = class RoleService {
105
115
  },
106
116
  },
107
117
  },
108
- });
118
+ }, 'menu_translations');
109
119
  }
110
120
  async listRoutes(roleId, paginationParams) {
111
121
  return this.paginationService.paginate(this.prismaService.routes, paginationParams, {
@@ -122,9 +132,19 @@ let RoleService = class RoleService {
122
132
  },
123
133
  });
124
134
  }
125
- async listScreens(roleId, paginationParams) {
135
+ async listScreens(locale, roleId, paginationParams) {
126
136
  return this.paginationService.paginate(this.prismaService.screens, paginationParams, {
127
137
  include: {
138
+ screen_translations: {
139
+ where: {
140
+ locales: {
141
+ code: locale,
142
+ },
143
+ },
144
+ select: {
145
+ name: true,
146
+ },
147
+ },
128
148
  role_screens: {
129
149
  where: {
130
150
  role_id: roleId,
@@ -135,7 +155,7 @@ let RoleService = class RoleService {
135
155
  },
136
156
  },
137
157
  },
138
- });
158
+ }, 'screen_translations');
139
159
  }
140
160
  async getRoles(locale, paginationParams) {
141
161
  const fields = [];
@@ -1 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I,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC;YACrC,IAAI,EAAE;gBACJ,IAAI;gBACJ,WAAW;aACZ;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAmC;QACxD,OAAO,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC;YACrC,KAAK,EAAE,EAAE,EAAE,EAAE;YACb,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,EAAa;QAC7B,IAAI,GAAG,IAAI,SAAS,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;YACpC,MAAM,IAAI,4BAAmB,CAC3B,oDAAoD,CACrD,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC;YACzC,KAAK,EAAE;gBACL,EAAE,EAAE;oBACF,EAAE,EAAE,GAAG;iBACR;aACF;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA5PY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;IAGR,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;GAL5C,WAAW,CA4PvB"}
@@ -12,9 +12,9 @@ export declare class RouteController {
12
12
  create({ url, method }: CreateDTO): Promise<any>;
13
13
  update(routeId: number, data: UpdateDTO): Promise<any>;
14
14
  delete(data: DeleteDTO): Promise<any>;
15
- listRoles(routeId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
15
+ listRoles(routeId: number, paginationParams: PaginationDTO, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
16
16
  updateRoles(routeId: number, data: UpdateIdsDTO): Promise<any>;
17
- listScreens(routeId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
17
+ listScreens(routeId: number, paginationParams: PaginationDTO, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
18
18
  updateScreens(routeId: number, data: UpdateIdsDTO): Promise<any>;
19
19
  }
20
20
  //# sourceMappingURL=route.controller.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"route.controller.d.ts","sourceRoot":"","sources":["../../src/route/route.controller.ts"],"names":[],"mappings":"AAeA,OAAO,EAAc,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,qBAGa,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,CACmB,OAAO,EAAE,MAAM,EACjC,gBAAgB,EAAE,aAAa;IAMzC,WAAW,CACiB,OAAO,EAAE,MAAM,EACvC,IAAI,EAAE,YAAY;IAMtB,WAAW,CACiB,OAAO,EAAE,MAAM,EACjC,gBAAgB,EAAE,aAAa;IAMzC,aAAa,CACe,OAAO,EAAE,MAAM,EACvC,IAAI,EAAE,YAAY;CAI7B"}
1
+ {"version":3,"file":"route.controller.d.ts","sourceRoot":"","sources":["../../src/route/route.controller.ts"],"names":[],"mappings":"AAeA,OAAO,EAAc,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,qBAGa,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,CACmB,OAAO,EAAE,MAAM,EACjC,gBAAgB,EAAE,aAAa,EACnC,MAAM,KAAA;IAMZ,WAAW,CACiB,OAAO,EAAE,MAAM,EACvC,IAAI,EAAE,YAAY;IAMtB,WAAW,CACiB,OAAO,EAAE,MAAM,EACjC,gBAAgB,EAAE,aAAa,EACnC,MAAM,KAAA;IAMZ,aAAa,CACe,OAAO,EAAE,MAAM,EACvC,IAAI,EAAE,YAAY;CAI7B"}
@@ -22,6 +22,7 @@ const create_dto_1 = require("./dto/create.dto");
22
22
  const update_dto_1 = require("./dto/update.dto");
23
23
  const delete_dto_1 = require("../dto/delete.dto");
24
24
  const update_ids_dto_1 = require("../dto/update-ids.dto");
25
+ const locale_1 = require("@hedhog/locale");
25
26
  let RouteController = class RouteController {
26
27
  constructor(routeService) {
27
28
  this.routeService = routeService;
@@ -41,14 +42,14 @@ let RouteController = class RouteController {
41
42
  async delete(data) {
42
43
  return this.routeService.delete(data);
43
44
  }
44
- async listRoles(routeId, paginationParams) {
45
- return this.routeService.listRoles(routeId, paginationParams);
45
+ async listRoles(routeId, paginationParams, locale) {
46
+ return this.routeService.listRoles(locale, routeId, paginationParams);
46
47
  }
47
48
  async updateRoles(routeId, data) {
48
49
  return this.routeService.updateRoles(routeId, data);
49
50
  }
50
- async listScreens(routeId, paginationParams) {
51
- return this.routeService.listScreens(routeId, paginationParams);
51
+ async listScreens(routeId, paginationParams, locale) {
52
+ return this.routeService.listScreens(locale, routeId, paginationParams);
52
53
  }
53
54
  async updateScreens(routeId, data) {
54
55
  return this.routeService.updateScreens(routeId, data);
@@ -95,8 +96,9 @@ __decorate([
95
96
  (0, common_1.Get)(':routeId/roles'),
96
97
  __param(0, (0, common_1.Param)('routeId', common_1.ParseIntPipe)),
97
98
  __param(1, (0, pagination_1.Pagination)()),
99
+ __param(2, (0, locale_1.Locale)()),
98
100
  __metadata("design:type", Function),
99
- __metadata("design:paramtypes", [Number, pagination_1.PaginationDTO]),
101
+ __metadata("design:paramtypes", [Number, pagination_1.PaginationDTO, Object]),
100
102
  __metadata("design:returntype", Promise)
101
103
  ], RouteController.prototype, "listRoles", null);
102
104
  __decorate([
@@ -111,8 +113,9 @@ __decorate([
111
113
  (0, common_1.Get)(':routeId/screens'),
112
114
  __param(0, (0, common_1.Param)('routeId', common_1.ParseIntPipe)),
113
115
  __param(1, (0, pagination_1.Pagination)()),
116
+ __param(2, (0, locale_1.Locale)()),
114
117
  __metadata("design:type", Function),
115
- __metadata("design:paramtypes", [Number, pagination_1.PaginationDTO]),
118
+ __metadata("design:paramtypes", [Number, pagination_1.PaginationDTO, Object]),
116
119
  __metadata("design:returntype", Promise)
117
120
  ], RouteController.prototype, "listScreens", null);
118
121
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"route.controller.js","sour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S,CAAC;IACpB,IAAA,mBAAU,EAAC,QAAQ,CAAC;IAGhB,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC,CAAC,CAAA;qCACR,4BAAY;GAHlC,eAAe,CAmE3B"}
@@ -16,9 +16,9 @@ export declare class RouteService {
16
16
  data: UpdateDTO;
17
17
  }): Promise<any>;
18
18
  delete({ ids }: DeleteDTO): Promise<any>;
19
- listRoles(routeId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
19
+ listRoles(locale: string, routeId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
20
20
  updateRoles(routeId: number, data: UpdateIdsDTO): Promise<any>;
21
- listScreens(routeId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
21
+ listScreens(locale: string, routeId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
22
22
  updateScreens(routeId: number, data: UpdateIdsDTO): Promise<any>;
23
23
  }
24
24
  //# sourceMappingURL=route.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"route.service.d.ts","sourceRoot":"","sources":["../../src/route/route.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,qBACa,YAAY;IAGrB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa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EAAE,MAAM;IAI5B,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,SAAS;IAIjC,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;IAUzB,SAAS,CACb,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,aAAa;IAiC3B,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;IAgB/C,WAAW,CACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,aAAa;IAgC3B,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;CAexD"}
@@ -51,9 +51,20 @@ let RouteService = class RouteService {
51
51
  },
52
52
  });
53
53
  }
54
- async listRoles(routeId, paginationParams) {
54
+ async listRoles(locale, routeId, paginationParams) {
55
55
  return this.paginationService.paginate(this.prismaService.roles, paginationParams, {
56
56
  include: {
57
+ role_translations: {
58
+ where: {
59
+ locales: {
60
+ code: locale,
61
+ },
62
+ },
63
+ select: {
64
+ name: true,
65
+ description: true,
66
+ },
67
+ },
57
68
  role_routes: {
58
69
  where: {
59
70
  route_id: routeId,
@@ -64,7 +75,7 @@ let RouteService = class RouteService {
64
75
  },
65
76
  },
66
77
  },
67
- });
78
+ }, 'role_translations');
68
79
  }
69
80
  async updateRoles(routeId, data) {
70
81
  await this.prismaService.role_routes.deleteMany({
@@ -80,9 +91,19 @@ let RouteService = class RouteService {
80
91
  skipDuplicates: true,
81
92
  });
82
93
  }
83
- async listScreens(routeId, paginationParams) {
94
+ async listScreens(locale, routeId, paginationParams) {
84
95
  return this.paginationService.paginate(this.prismaService.screens, paginationParams, {
85
96
  include: {
97
+ screen_translations: {
98
+ where: {
99
+ locales: {
100
+ code: locale,
101
+ },
102
+ },
103
+ select: {
104
+ name: true,
105
+ },
106
+ },
86
107
  route_screens: {
87
108
  where: {
88
109
  route_id: routeId,
@@ -93,7 +114,7 @@ let RouteService = class RouteService {
93
114
  },
94
115
  },
95
116
  },
96
- });
117
+ }, 'screen_translations');
97
118
  }
98
119
  async updateScreens(routeId, data) {
99
120
  await this.prismaService.route_screens.deleteMany({
@@ -1 +1 @@
1
- {"version":3,"file":"route.service.js","sourceRoot":"","sources":["../../src/route/route.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAsE;AACtE,2CAA+C;AAC/C,2CAAgE;AAOzD,IAAM,YAAY,GAAlB,MAAM,YAAY;IACvB,YAEmB,aAA4B,EAE5B,iBAAoC;QAFpC,kBAAa,GAAb,aAAa,CAAe;QAE5B,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,KAAK,CAAC,SAAS,CAAC,gBAA+B;QAC7C,MAAM,MAAM,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QAEjC,MAAM,EAAE,GAAU,IAAI,CAAC,aAAa,CAAC,uBAAuB,CAC1D,MAAM,EACN,gBAAgB,CACjB,CAAC;QAEF,OAAO,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CACpC,IAAI,CAAC,aAAa,CAAC,MAAM,EACzB,gBAAgB,EAChB;YACE,KAAK,EAAE;gBACL,EAAE;aACH;SACF,CACF,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,OAAe;QAChC,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,EAAa;QACrC,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,GAAG,EA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,EAChB;YACE,OAAO,EAAE;gBACP,mBAAmB,EAAE;oBACnB,KAAK,EAAE;wBACL,OAAO,EAAE;4BACP,IAAI,EAAE,MAAM;yBACb;qBACF;oBACD,MAAM,EAAE;wBACN,IAAI,EAAE,IAAI;qBACX;iBACF;gBACD,aAAa,EAAE;oBACb,KAAK,EAAE;wBACL,QAAQ,EAAE,OAAO;qBAClB;oBACD,MAAM,EAAE;wBACN,QAAQ,EAAE,IAAI;wBACd,SAAS,EAAE,IAAI;qBAChB;iBACF;aACF;SACF,EACD,qBAAqB,CACtB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,OAAe,EAAE,IAAkB;QACrD,MAAM,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,UAAU,CAAC;YAChD,KAAK,EAAE;gBACL,QAAQ,EAAE,OAAO;aAClB;SACF,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,UAAU,CAAC;YACjD,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;gBAChC,SAAS,EAAE,QAAQ;gBACnB,QAAQ,EAAE,OAAO;aAClB,CAAC,CAAC;YACH,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA1JY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;IAGR,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;GAL5C,YAAY,CA0JxB"}
@@ -8,7 +8,7 @@ export declare class ScreenController {
8
8
  constructor(screenService: ScreenService);
9
9
  getScreens(paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
10
10
  listRoles(screenId: number, paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
11
- listRoutes(screenId: number, paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
11
+ listRoutes(screenId: number, paginationParams: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
12
12
  updateRoles(screenId: number, data: UpdateIdsDTO): Promise<any>;
13
13
  updateRoutes(screenId: number, data: UpdateIdsDTO): Promise<any>;
14
14
  show(screenId: number): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"screen.controller.d.ts","sourceRoot":"","sources":["../../src/screen/screen.controller.ts"],"names":[],"mappings":"AAcA,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,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,qBAGa,gBAAgB;IAGzB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAIzC,UAAU,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;IAK3D,SAAS,CACoB,QAAQ,EAAE,MAAM,EACnC,gBAAgB,KAAA,EACpB,MAAM,KAAA;IAMZ,UAAU,CACmB,QAAQ,EAAE,MAAM,EACnC,gBAAgB,KAAA,EACpB,MAAM,KAAA;IAMZ,WAAW,CACkB,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,YAAY;IAMtB,YAAY,CACiB,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,YAAY;IAMtB,IAAI,CAAkC,QAAQ,EAAE,MAAM;IAK5D,MAAM,CAAS,IAAI,EAAE,SAAS;IAKxB,MAAM,CACuB,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
1
+ {"version":3,"file":"screen.controller.d.ts","sourceRoot":"","sources":["../../src/screen/screen.controller.ts"],"names":[],"mappings":"AAcA,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,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,qBAGa,gBAAgB;IAGzB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAIzC,UAAU,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;IAK3D,SAAS,CACoB,QAAQ,EAAE,MAAM,EACnC,gBAAgB,KAAA,EACpB,MAAM,KAAA;IAMZ,UAAU,CACmB,QAAQ,EAAE,MAAM,EACnC,gBAAgB,KAAA;IAM1B,WAAW,CACkB,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,YAAY;IAMtB,YAAY,CACiB,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,YAAY;IAMtB,IAAI,CAAkC,QAAQ,EAAE,MAAM;IAK5D,MAAM,CAAS,IAAI,EAAE,SAAS;IAKxB,MAAM,CACuB,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
@@ -33,8 +33,8 @@ let ScreenController = class ScreenController {
33
33
  async listRoles(screenId, paginationParams, locale) {
34
34
  return this.screenService.listRoles(locale, screenId, paginationParams);
35
35
  }
36
- async listRoutes(screenId, paginationParams, locale) {
37
- return this.screenService.listRoutes(locale, screenId, paginationParams);
36
+ async listRoutes(screenId, paginationParams) {
37
+ return this.screenService.listRoutes(screenId, paginationParams);
38
38
  }
39
39
  async updateRoles(screenId, data) {
40
40
  return this.screenService.updateRoles(screenId, data);
@@ -80,9 +80,8 @@ __decorate([
80
80
  (0, common_1.Get)(':screenId/routes'),
81
81
  __param(0, (0, common_1.Param)('screenId', common_1.ParseIntPipe)),
82
82
  __param(1, (0, pagination_1.Pagination)()),
83
- __param(2, (0, locale_1.Locale)()),
84
83
  __metadata("design:type", Function),
85
- __metadata("design:paramtypes", [Number, Object, Object]),
84
+ __metadata("design:paramtypes", [Number, Object]),
86
85
  __metadata("design:returntype", Promise)
87
86
  ], ScreenController.prototype, "listRoutes", null);
88
87
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"screen.controller.js","sourceRoot":"","sources":["../../src/screen/screen.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAYwB;AACxB,iDAA6C;AAC7C,kDAA8C;AAC9C,iDAA6C;AAC7C,qDAAiD;AACjD,0DAAsD;AACtD,sEAAyD;AACzD,0DAAqD;AACrD,2CAAwC;AAKjC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAEmB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAC5C,CAAC;IAGE,AAAN,KAAK,CAAC,UAAU,CAAe,gBAAgB,EAAY,MAAM;QAC/D,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACjE,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CACoB,QAAgB,EACnC,gBAAgB,EACpB,MAAM;QAEhB,OAAO,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAC;IAC1E,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CACmB,QAAgB,EACnC,gBAAgB,EACpB,MAAM;QAEhB,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAA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,IAAA,cAAK,EAAC,UAAU,EAAE,qBAAY,CAAC,CAAA;;;;4CAE1C;AAGD;IADC,IAAA,aAAI,GAAE;IACC,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;8CAE7B;AAGK;IADL,IAAA,cAAK,EAAC,WAAW,CAAC;IAEhB,WAAA,IAAA,cAAK,EAAC,UAAU,EAAE,qBAAY,CAAC,CAAA;IAC/B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;8CAMxB;AAGK;IADL,IAAA,eAAM,GAAE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;8CAEnC;2BApEU,gBAAgB;IAH5B,IAAA,qBAAI,GAAE;IACN,IAAA,kBAAS,EAAC,sBAAS,CAAC;IACpB,IAAA,mBAAU,EAAC,SAAS,CAAC;IAGjB,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC,CAAC,CAAA;qCACR,8BAAa;GAHpC,gBAAgB,CAqE5B"}
@@ -10,7 +10,7 @@ export declare class ScreenService {
10
10
  constructor(prismaService: PrismaService, paginationService: PaginationService);
11
11
  updateRoles(screenId: number, data: UpdateIdsDTO): Promise<any>;
12
12
  updateRoutes(screenId: number, { ids }: UpdateIdsDTO): Promise<any>;
13
- listRoutes(locale: string, screenId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
13
+ listRoutes(screenId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
14
14
  listRoles(locale: string, screenId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
15
15
  getScreens(locale: string, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
16
16
  get(screenId: number): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"screen.service.d.ts","sourceRoot":"","sources":["../../src/screen/screen.service.ts"],"names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es(locale, screenId, paginationParams) {
62
+ async listRoutes(screenId, paginationParams) {
63
63
  return this.paginationService.paginate(this.prismaService.routes, paginationParams, {
64
64
  include: {
65
65
  route_screens: {
@@ -1 +1 @@
1
- {"version":3,"file":"screen.service.js","sourceRoot":"","sources":["../../src/screen/screen.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAsE;AACtE,2CAA+C;AAC/C,2CAKwB;AAOjB,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,YAEmB,aAA4B,EAE5B,iBAAoC;QAFpC,kBAAa,GAAb,aAAa,CAAe;QAE5B,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,KAAK,CAAC,WAAW,CAAC,QAAgB,EAAE,IAAkB;QACpD,MAAM,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,UAAU,CAAC;YAC/C,KAAK,EAAE;gBACL,SAAS,EAAE,QAAQ;aACpB;SACF,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,UAAU,CAAC;YAChD,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBAC9B,SAAS,EAAE,QAAQ;gBACnB,OAAO,EAAE,MAAM;aAChB,CAAC,CAAC;YACH,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;IACL,CAAC;IACD,KAAK,CAAC,YAAY,CAAC,QAAgB,EAAE,EAAE,GAAG,EAAgB;QACxD,GAAG,GAAG,CACJ,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC;YACvC,KAAK,EAAE;gBACL,EAAE,EAAE;oBACF,EAAE,EAAE,GAAG;iBACR;aACF;YACD,MAAM,EAAE;gBACN,EAAE,EAAE,IAAI;aACT;SACF,CAAC,CACH,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAE3B,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;gBACJ,IAAI;gBACJ,WAAW;gBACX,IAAI;aACL;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAmC;QACxD,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC;YACvC,KAAK,EAAE,EAAE,EAAE,EAAE;YACb,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,EAAa;QAC7B,IAAI,GAAG,IAAI,SAAS,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;YACpC,MAAM,IAAI,4BAAmB,CAC3B,gDAAgD,CACjD,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC;YAC3C,KAAK,EAAE;gBACL,EAAE,EAAE;oBACF,EAAE,EAAE,GAAG;iBACR;aACF;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAtKY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;IAGR,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;GAL5C,aAAa,CAsKzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/admin",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {