@hedhog/admin 0.0.122 → 0.0.124

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. package/dist/auth/auth.controller.js +6 -6
  2. package/dist/auth/auth.controller.js.map +1 -1
  3. package/dist/auth/guards/auth.guard.js +2 -2
  4. package/dist/auth/guards/auth.guard.js.map +1 -1
  5. package/dist/menu/dto/create.dto.d.ts +1 -1
  6. package/dist/menu/dto/create.dto.js +3 -3
  7. package/dist/menu/menu.controller.d.ts +27 -3
  8. package/dist/menu/menu.controller.d.ts.map +1 -1
  9. package/dist/menu/menu.controller.js +5 -5
  10. package/dist/menu/menu.controller.js.map +1 -1
  11. package/dist/menu/menu.service.d.ts +28 -4
  12. package/dist/menu/menu.service.d.ts.map +1 -1
  13. package/dist/menu/menu.service.js +4 -4
  14. package/dist/menu/menu.service.js.map +1 -1
  15. package/dist/menu/menu.service.spec.d.ts +0 -1
  16. package/dist/menu/menu.service.spec.js +206 -190
  17. package/dist/menu/menu.service.spec.js.map +1 -1
  18. package/dist/role/guards/role.guard.js +3 -3
  19. package/dist/role/guards/role.guard.js.map +1 -1
  20. package/dist/role/role.controller.d.ts +45 -5
  21. package/dist/role/role.controller.d.ts.map +1 -1
  22. package/dist/role/role.controller.js +4 -4
  23. package/dist/role/role.controller.js.map +1 -1
  24. package/dist/role/role.service.d.ts +47 -7
  25. package/dist/role/role.service.d.ts.map +1 -1
  26. package/dist/role/role.service.js +8 -4
  27. package/dist/role/role.service.js.map +1 -1
  28. package/dist/route/route.controller.d.ts +27 -3
  29. package/dist/route/route.controller.d.ts.map +1 -1
  30. package/dist/route/route.controller.js +2 -2
  31. package/dist/route/route.controller.js.map +1 -1
  32. package/dist/route/route.service.d.ts +27 -3
  33. package/dist/route/route.service.d.ts.map +1 -1
  34. package/dist/route/route.service.spec.d.ts +0 -1
  35. package/dist/route/route.service.spec.js +260 -249
  36. package/dist/route/route.service.spec.js.map +1 -1
  37. package/dist/screen/dto/create.dto.d.ts +0 -2
  38. package/dist/screen/dto/create.dto.d.ts.map +1 -1
  39. package/dist/screen/dto/create.dto.js +0 -10
  40. package/dist/screen/dto/create.dto.js.map +1 -1
  41. package/dist/screen/screen.controller.d.ts +27 -3
  42. package/dist/screen/screen.controller.d.ts.map +1 -1
  43. package/dist/screen/screen.controller.js +2 -2
  44. package/dist/screen/screen.controller.js.map +1 -1
  45. package/dist/screen/screen.service.d.ts +28 -4
  46. package/dist/screen/screen.service.d.ts.map +1 -1
  47. package/dist/screen/screen.service.js +1 -3
  48. package/dist/screen/screen.service.js.map +1 -1
  49. package/dist/screen/screen.service.spec.d.ts +0 -1
  50. package/dist/screen/screen.service.spec.js +257 -240
  51. package/dist/screen/screen.service.spec.js.map +1 -1
  52. package/dist/user/user.controller.d.ts +18 -2
  53. package/dist/user/user.controller.d.ts.map +1 -1
  54. package/dist/user/user.controller.js +2 -2
  55. package/dist/user/user.controller.js.map +1 -1
  56. package/dist/user/user.service.d.ts +18 -2
  57. package/dist/user/user.service.d.ts.map +1 -1
  58. package/package.json +6 -6
  59. package/src/auth/auth.controller.ts +1 -1
  60. package/src/auth/guards/auth.guard.ts +1 -1
  61. package/src/menu/dto/create.dto.ts +3 -3
  62. package/src/menu/menu.controller.ts +3 -3
  63. package/src/menu/menu.service.spec.ts +247 -247
  64. package/src/menu/menu.service.ts +3 -3
  65. package/src/role/guards/role.guard.ts +1 -1
  66. package/src/role/role.controller.ts +3 -3
  67. package/src/role/role.service.ts +8 -21
  68. package/src/route/route.controller.ts +1 -1
  69. package/src/route/route.service.spec.ts +300 -300
  70. package/src/screen/dto/create.dto.ts +0 -8
  71. package/src/screen/screen.controller.ts +1 -1
  72. package/src/screen/screen.service.spec.ts +298 -298
  73. package/src/screen/screen.service.ts +1 -3
  74. package/src/user/user.controller.ts +1 -1
@@ -1,192 +1,208 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const pagination_1 = require("@hedhog/pagination");
4
- const prisma_1 = require("@hedhog/prisma");
5
- const common_1 = require("@nestjs/common");
6
- const testing_1 = require("@nestjs/testing");
7
- const menu_service_1 = require("./menu.service");
8
- describe('MenuService', () => {
9
- let menuService;
10
- let prismaService;
11
- let paginationService;
12
- const mockPrismaService = {
13
- menu: {
14
- create: jest.fn(),
15
- update: jest.fn(),
16
- deleteMany: jest.fn(),
17
- findUnique: jest.fn(),
18
- findMany: jest.fn(),
19
- count: jest.fn(),
20
- },
21
- role_menu: {
22
- deleteMany: jest.fn(),
23
- createMany: jest.fn(),
24
- },
25
- menu_screen: {
26
- deleteMany: jest.fn(),
27
- createMany: jest.fn(),
28
- },
29
- };
30
- const mockPaginationService = {
31
- paginate: jest.fn(),
32
- createInsensitiveSearch: jest.fn(),
33
- };
34
- beforeEach(async () => {
35
- const module = await testing_1.Test.createTestingModule({
36
- providers: [
37
- menu_service_1.MenuService,
38
- { provide: prisma_1.PrismaService, useValue: mockPrismaService },
39
- { provide: pagination_1.PaginationService, useValue: mockPaginationService },
40
- ],
41
- }).compile();
42
- menuService = module.get(menu_service_1.MenuService);
43
- prismaService = module.get(prisma_1.PrismaService);
44
- paginationService = module.get(pagination_1.PaginationService);
45
- });
46
- afterEach(() => {
47
- jest.clearAllMocks();
48
- });
49
- describe('create', () => {
50
- it('should create a new menu', async () => {
51
- const createMenuDto = {
52
- name: 'Test Menu',
53
- url: '/test',
54
- icon: 'test-icon',
55
- order: 1,
56
- menu_id: undefined,
57
- };
58
- mockPrismaService.menu.create.mockResolvedValue(createMenuDto);
59
- const result = await menuService.create(createMenuDto);
60
- expect(result).toEqual(createMenuDto);
61
- expect(prismaService.menu.create).toHaveBeenCalledWith({
62
- data: createMenuDto,
63
- });
64
- });
65
- });
66
- describe('update', () => {
67
- it('should update a menu', async () => {
68
- const updateDto = { id: 1, data: { name: 'Updated Menu' } };
69
- mockPrismaService.menu.update.mockResolvedValue(updateDto.data);
70
- const result = await menuService.update(updateDto);
71
- expect(result).toEqual(updateDto.data);
72
- expect(prismaService.menu.update).toHaveBeenCalledWith({
73
- where: { id: updateDto.id },
74
- data: updateDto.data,
75
- });
76
- });
77
- });
78
- describe('delete', () => {
79
- it('should delete menu', async () => {
80
- const deleteDto = { ids: [1, 2, 3] };
81
- mockPrismaService.menu.deleteMany.mockResolvedValue({ count: 3 });
82
- const result = await menuService.delete(deleteDto);
83
- expect(result).toEqual({ count: 3 });
84
- expect(prismaService.menu.deleteMany).toHaveBeenCalledWith({
85
- where: { id: { in: deleteDto.ids } },
86
- });
87
- });
88
- it('should throw BadRequestException if no ids are provided', async () => {
89
- await expect(menuService.delete({ ids: null })).rejects.toThrow(common_1.BadRequestException);
90
- });
91
- });
92
- describe('listScreens', () => {
93
- it('should paginate screens', async () => {
94
- const locale = 'en';
95
- const menuId = 1;
96
- const paginationParams = {
97
- page: 1,
98
- pageSize: 10,
99
- search: '',
100
- sortField: '',
101
- sortOrder: pagination_1.PageOrderDirection.Asc,
102
- fields: '',
103
- };
104
- const mockScreens = [{ id: 1, name: 'Screen 1' }];
105
- mockPaginationService.paginate.mockResolvedValue(mockScreens);
106
- const result = await menuService.listScreens(locale, menuId, paginationParams);
107
- expect(result).toEqual(mockScreens);
108
- expect(paginationService.paginate).toHaveBeenCalledWith(prismaService.screens, paginationParams, expect.anything(), 'screen_locale');
109
- });
110
- });
111
- describe('updateScreens', () => {
112
- it('should update screens associated with a menu', async () => {
113
- const menuId = 1;
114
- const updateData = { ids: [1, 2, 3] };
115
- jest
116
- .spyOn(prismaService.menu_screen, 'deleteMany')
117
- .mockResolvedValue(null);
118
- jest
119
- .spyOn(prismaService.menu_screen, 'createMany')
120
- .mockResolvedValue(null);
121
- await menuService.updateScreens(menuId, updateData);
122
- expect(prismaService.menu_screen.deleteMany).toHaveBeenCalledWith({
123
- where: { menu_id: menuId },
124
- });
125
- expect(prismaService.menu_screen.createMany).toHaveBeenCalledWith({
126
- data: updateData.ids.map((screenId) => ({
127
- menu_id: menuId,
128
- screen_id: screenId,
129
- })),
130
- skipDuplicates: true,
131
- });
132
- });
133
- });
134
- describe('updateRoles', () => {
135
- it('should update role associated with a menu', async () => {
136
- const menuId = 1;
137
- const updateData = { ids: [1, 2] };
138
- jest.spyOn(prismaService.role_menu, 'deleteMany').mockResolvedValue(null);
139
- jest.spyOn(prismaService.role_menu, 'createMany').mockResolvedValue(null);
140
- await menuService.updateRoles(menuId, updateData);
141
- expect(prismaService.role_menu.deleteMany).toHaveBeenCalledWith({
142
- where: { menu_id: menuId },
143
- });
144
- expect(prismaService.role_menu.createMany).toHaveBeenCalledWith({
145
- data: updateData.ids.map((roleId) => ({
146
- menu_id: menuId,
147
- role_id: roleId,
148
- })),
149
- skipDuplicates: true,
150
- });
151
- });
152
- });
153
- describe('updateOrder', () => {
154
- it('should update the order of menu', async () => {
155
- const orderData = { ids: [1, 2, 3] };
156
- jest.spyOn(prismaService.menu, 'count').mockResolvedValue(3);
157
- jest.spyOn(prismaService.menu, 'update').mockResolvedValue(null);
158
- await menuService.updateOrder(orderData);
159
- expect(prismaService.menu.count).toHaveBeenCalledWith({
160
- where: { id: { in: orderData.ids } },
161
- });
162
- expect(prismaService.menu.update).toHaveBeenCalledTimes(orderData.ids.length);
163
- orderData.ids.forEach((id, index) => {
164
- expect(prismaService.menu.update).toHaveBeenCalledWith({
165
- where: { id },
166
- data: { order: index + 1 },
167
- });
168
- });
169
- });
170
- it('should throw BadRequestException if IDs are invalid', async () => {
171
- const orderData = { ids: [1, 2, 3] };
172
- jest.spyOn(prismaService.menu, 'count').mockResolvedValue(2); // IDs não batem com o número esperado
173
- await expect(menuService.updateOrder(orderData)).rejects.toThrow(common_1.BadRequestException);
174
- });
175
- });
176
- /*
177
- describe('getMenus', () => {
178
- it('should get menu for a user', async () => {
179
- const locale = 'en';
180
- const userId = 1;
181
- const mockMenus = [{ id: 1, name: 'Menu 1' }];
182
- mockPrismaService.menu.findMany.mockResolvedValue(mockMenus);
183
-
184
- const result = await menuService.getMenus(locale, userId);
185
-
186
- expect(result).toEqual(mockMenus);
187
- expect(prismaService.menu.findMany).toHaveBeenCalled();
188
- });
189
- });
190
- */
191
- });
2
+ // import {
3
+ // PageOrderDirection,
4
+ // PaginationDTO,
5
+ // PaginationService,
6
+ // } from '@hedhog/pagination';
7
+ // import { PrismaService } from '@hedhog/prisma';
8
+ // import { BadRequestException } from '@nestjs/common';
9
+ // import { Test, TestingModule } from '@nestjs/testing';
10
+ // import { MenuService } from './menu.service';
11
+ // describe('MenuService', () => {
12
+ // let menuService: MenuService;
13
+ // let prismaService: PrismaService;
14
+ // let paginationService: PaginationService;
15
+ // const mockPrismaService = {
16
+ // menu: {
17
+ // create: jest.fn(),
18
+ // update: jest.fn(),
19
+ // deleteMany: jest.fn(),
20
+ // findUnique: jest.fn(),
21
+ // findMany: jest.fn(),
22
+ // count: jest.fn(),
23
+ // },
24
+ // role_menu: {
25
+ // deleteMany: jest.fn(),
26
+ // createMany: jest.fn(),
27
+ // },
28
+ // menu_screen: {
29
+ // deleteMany: jest.fn(),
30
+ // createMany: jest.fn(),
31
+ // },
32
+ // };
33
+ // const mockPaginationService = {
34
+ // paginate: jest.fn(),
35
+ // createInsensitiveSearch: jest.fn(),
36
+ // };
37
+ // beforeEach(async () => {
38
+ // const module: TestingModule = await Test.createTestingModule({
39
+ // providers: [
40
+ // MenuService,
41
+ // { provide: PrismaService, useValue: mockPrismaService },
42
+ // { provide: PaginationService, useValue: mockPaginationService },
43
+ // ],
44
+ // }).compile();
45
+ // menuService = module.get<MenuService>(MenuService);
46
+ // prismaService = module.get<PrismaService>(PrismaService);
47
+ // paginationService = module.get<PaginationService>(PaginationService);
48
+ // });
49
+ // afterEach(() => {
50
+ // jest.clearAllMocks();
51
+ // });
52
+ // describe('create', () => {
53
+ // it('should create a new menu', async () => {
54
+ // const createMenuDto = {
55
+ // name: 'Test Menu',
56
+ // url: '/test',
57
+ // icon: 'test-icon',
58
+ // order: 1,
59
+ // menu_id: undefined,
60
+ // };
61
+ // mockPrismaService.menu.create.mockResolvedValue(createMenuDto);
62
+ // const result = await menuService.create(createMenuDto);
63
+ // expect(result).toEqual(createMenuDto);
64
+ // expect(prismaService.menu.create).toHaveBeenCalledWith({
65
+ // data: createMenuDto,
66
+ // });
67
+ // });
68
+ // });
69
+ // describe('update', () => {
70
+ // it('should update a menu', async () => {
71
+ // const updateDto = { id: 1, data: { name: 'Updated Menu' } };
72
+ // mockPrismaService.menu.update.mockResolvedValue(updateDto.data);
73
+ // const result = await menuService.update(updateDto);
74
+ // expect(result).toEqual(updateDto.data);
75
+ // expect(prismaService.menu.update).toHaveBeenCalledWith({
76
+ // where: { id: updateDto.id },
77
+ // data: updateDto.data,
78
+ // });
79
+ // });
80
+ // });
81
+ // describe('delete', () => {
82
+ // it('should delete menu', async () => {
83
+ // const deleteDto = { ids: [1, 2, 3] };
84
+ // mockPrismaService.menu.deleteMany.mockResolvedValue({ count: 3 });
85
+ // const result = await menuService.delete(deleteDto);
86
+ // expect(result).toEqual({ count: 3 });
87
+ // expect(prismaService.menu.deleteMany).toHaveBeenCalledWith({
88
+ // where: { id: { in: deleteDto.ids } },
89
+ // });
90
+ // });
91
+ // it('should throw BadRequestException if no ids are provided', async () => {
92
+ // await expect(menuService.delete({ ids: null })).rejects.toThrow(
93
+ // BadRequestException,
94
+ // );
95
+ // });
96
+ // });
97
+ // describe('listScreens', () => {
98
+ // it('should paginate screens', async () => {
99
+ // const locale = 'en';
100
+ // const menuId = 1;
101
+ // const paginationParams: PaginationDTO = {
102
+ // page: 1,
103
+ // pageSize: 10,
104
+ // search: '',
105
+ // sortField: '',
106
+ // sortOrder: PageOrderDirection.Asc,
107
+ // fields: '',
108
+ // };
109
+ // const mockScreens = [{ id: 1, name: 'Screen 1' }];
110
+ // mockPaginationService.paginate.mockResolvedValue(mockScreens);
111
+ // const result = await menuService.listScreens(
112
+ // locale,
113
+ // menuId,
114
+ // paginationParams,
115
+ // );
116
+ // expect(result).toEqual(mockScreens);
117
+ // expect(paginationService.paginate).toHaveBeenCalledWith(
118
+ // prismaService.screens,
119
+ // paginationParams,
120
+ // expect.anything(),
121
+ // 'screen_locale',
122
+ // );
123
+ // });
124
+ // });
125
+ // describe('updateScreens', () => {
126
+ // it('should update screens associated with a menu', async () => {
127
+ // const menuId = 1;
128
+ // const updateData = { ids: [1, 2, 3] };
129
+ // jest
130
+ // .spyOn(prismaService.menu_screen, 'deleteMany')
131
+ // .mockResolvedValue(null);
132
+ // jest
133
+ // .spyOn(prismaService.menu_screen, 'createMany')
134
+ // .mockResolvedValue(null);
135
+ // await menuService.updateScreens(menuId, updateData);
136
+ // expect(prismaService.menu_screen.deleteMany).toHaveBeenCalledWith({
137
+ // where: { menu_id: menuId },
138
+ // });
139
+ // expect(prismaService.menu_screen.createMany).toHaveBeenCalledWith({
140
+ // data: updateData.ids.map((screenId) => ({
141
+ // menu_id: menuId,
142
+ // screen_id: screenId,
143
+ // })),
144
+ // skipDuplicates: true,
145
+ // });
146
+ // });
147
+ // });
148
+ // describe('updateRoles', () => {
149
+ // it('should update role associated with a menu', async () => {
150
+ // const menuId = 1;
151
+ // const updateData = { ids: [1, 2] };
152
+ // jest.spyOn(prismaService.role_menu, 'deleteMany').mockResolvedValue(null);
153
+ // jest.spyOn(prismaService.role_menu, 'createMany').mockResolvedValue(null);
154
+ // await menuService.updateRoles(menuId, updateData);
155
+ // expect(prismaService.role_menu.deleteMany).toHaveBeenCalledWith({
156
+ // where: { menu_id: menuId },
157
+ // });
158
+ // expect(prismaService.role_menu.createMany).toHaveBeenCalledWith({
159
+ // data: updateData.ids.map((roleId) => ({
160
+ // menu_id: menuId,
161
+ // role_id: roleId,
162
+ // })),
163
+ // skipDuplicates: true,
164
+ // });
165
+ // });
166
+ // });
167
+ // describe('updateOrder', () => {
168
+ // it('should update the order of menu', async () => {
169
+ // const orderData = { ids: [1, 2, 3] };
170
+ // jest.spyOn(prismaService.menu, 'count').mockResolvedValue(3);
171
+ // jest.spyOn(prismaService.menu, 'update').mockResolvedValue(null);
172
+ // await menuService.updateOrder(orderData);
173
+ // expect(prismaService.menu.count).toHaveBeenCalledWith({
174
+ // where: { id: { in: orderData.ids } },
175
+ // });
176
+ // expect(prismaService.menu.update).toHaveBeenCalledTimes(
177
+ // orderData.ids.length,
178
+ // );
179
+ // orderData.ids.forEach((id, index) => {
180
+ // expect(prismaService.menu.update).toHaveBeenCalledWith({
181
+ // where: { id },
182
+ // data: { order: index + 1 },
183
+ // });
184
+ // });
185
+ // });
186
+ // it('should throw BadRequestException if IDs are invalid', async () => {
187
+ // const orderData = { ids: [1, 2, 3] };
188
+ // jest.spyOn(prismaService.menu, 'count').mockResolvedValue(2); // IDs não batem com o número esperado
189
+ // await expect(menuService.updateOrder(orderData)).rejects.toThrow(
190
+ // BadRequestException,
191
+ // );
192
+ // });
193
+ // });
194
+ // /*
195
+ // describe('getMenus', () => {
196
+ // it('should get menu for a user', async () => {
197
+ // const locale = 'en';
198
+ // const userId = 1;
199
+ // const mockMenus = [{ id: 1, name: 'Menu 1' }];
200
+ // mockPrismaService.menu.findMany.mockResolvedValue(mockMenus);
201
+ // const result = await menuService.getMenus(locale, userId);
202
+ // expect(result).toEqual(mockMenus);
203
+ // expect(prismaService.menu.findMany).toHaveBeenCalled();
204
+ // });
205
+ // });
206
+ // */
207
+ // });
192
208
  //# sourceMappingURL=menu.service.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu.service.spec.js","sourceRoot":"","sources":["../../src/menu/menu.service.spec.ts"],"names":[],"mappings":";;AAAA,mDAI4B;AAC5B,2CAA+C;AAC/C,2CAAqD;AACrD,6CAAsD;AACtD,iDAA6C;AAE7C,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,IAAI,WAAwB,CAAC;IAC7B,IAAI,aAA4B,CAAC;IACjC,IAAI,iBAAoC,CAAC;IAEzC,MAAM,iBAAiB,GAAG;QACxB,IAAI,EAAE;YACJ,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE;YACjB,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE;YACjB,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE;YAC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Q;AAER,oCAAoC;AACpC,oEAAoE;AACpE,0BAA0B;AAC1B,4CAA4C;AAE5C,mFAAmF;AACnF,mFAAmF;AAEnF,2DAA2D;AAE3D,0EAA0E;AAC1E,sCAAsC;AACtC,YAAY;AAEZ,0EAA0E;AAC1E,kDAAkD;AAClD,6BAA6B;AAC7B,6BAA6B;AAC7B,eAAe;AACf,gCAAgC;AAChC,YAAY;AACZ,UAAU;AACV,QAAQ;AAER,oCAAoC;AACpC,0DAA0D;AAC1D,8CAA8C;AAE9C,sEAAsE;AACtE,0EAA0E;AAE1E,kDAAkD;AAElD,gEAAgE;AAChE,gDAAgD;AAChD,YAAY;AAEZ,iEAAiE;AACjE,gCAAgC;AAChC,WAAW;AAEX,+CAA+C;AAC/C,mEAAmE;AACnE,2BAA2B;AAC3B,wCAAwC;AACxC,cAAc;AACd,YAAY;AACZ,UAAU;AAEV,8EAA8E;AAC9E,8CAA8C;AAE9C,6GAA6G;AAE7G,0EAA0E;AAC1E,+BAA+B;AAC/B,WAAW;AACX,UAAU;AACV,QAAQ;AACR,OAAO;AACP,iCAAiC;AACjC,qDAAqD;AACrD,6BAA6B;AAC7B,0BAA0B;AAC1B,uDAAuD;AACvD,sEAAsE;AAEtE,mEAAmE;AAEnE,2CAA2C;AAC3C,gEAAgE;AAChE,UAAU;AACV,QAAQ;AACR,OAAO;AACP,MAAM"}
@@ -17,7 +17,7 @@ const prisma_1 = require("@hedhog/prisma");
17
17
  const common_1 = require("@nestjs/common");
18
18
  const constants_1 = require("@nestjs/common/constants");
19
19
  const core_1 = require("@nestjs/core");
20
- const utils_1 = require("@hedhog/utils");
20
+ const core_2 = require("@hedhog/core");
21
21
  let RoleGuard = class RoleGuard {
22
22
  constructor(reflector, prisma) {
23
23
  this.reflector = reflector;
@@ -25,14 +25,14 @@ let RoleGuard = class RoleGuard {
25
25
  }
26
26
  async canActivate(context) {
27
27
  var _a, _b;
28
- const isPublic = this.reflector.getAllAndOverride(utils_1.IS_PUBLIC_KEY, [
28
+ const isPublic = this.reflector.getAllAndOverride(core_2.IS_PUBLIC_KEY, [
29
29
  context.getHandler(),
30
30
  context.getClass(),
31
31
  ]);
32
32
  if (isPublic) {
33
33
  return true;
34
34
  }
35
- const withRole = this.reflector.getAllAndOverride(utils_1.WITH_ROLE, [
35
+ const withRole = this.reflector.getAllAndOverride(core_2.WITH_ROLE, [
36
36
  context.getHandler(),
37
37
  context.getClass(),
38
38
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"role.guard.js","sourceRoot":"","sources":["../../../src/role/guards/role.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA+C;AAC/C,2CAQwB;AACxB,wDAA2D;AAC3D,uCAAyC;AAEzC,yCAAyD;AAGlD,IAAM,SAAS,GAAf,MAAM,SAAS;IACpB,YACU,SAAoB,EAEX,MAAqB;QAF9B,cAAS,GAAT,SAAS,CAAW;QAEX,WAAM,GAAN,MAAM,CAAe;IACrC,CAAC;IAEJ,KAAK,CAAC,WAAW,CAAC,OAAyB;;QACzC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAU,qBAAa,EAAE;YACxE,OAAO,CAAC,UAAU,EAAE;YACpB,OAAO,CAAC,QAAQ,EAAE;SACnB,CAAC,CAAC;QAEH,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAU,iBAAS,EAAE;YACpE,OAAO,CAAC,UAAU,EAAE;YACpB,OAAO,CAAC,QAAQ,EAAE;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,OAAO,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,UAAU,EAAW,CAAC;QAC7D,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;QACtC,MAAM,OAAO,GA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YAC1C,KAAK,EAAE;gBACL,MAAM,EAAE,UAAU;gBAClB,GAAG,EAAE,QAAQ;gBACb,UAAU,EAAE;oBACV,IAAI,EAAE;wBACJ,IAAI,EAAE;4BACJ,SAAS,EAAE;gCACT,IAAI,EAAE;oCACJ,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;iCACxB;6BACF;yBACF;qBACF;iBACF;aACF;SACF,CAAC,CAAC;QAEH,OAAO,KAAK,KAAK,CAAC,CAAC;IACrB,CAAC;IAEO,sBAAsB,CAAC,OAAgB;;QAC7C,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,MAAA,MAAA,OAAO,CAAC,OAAO,CAAC,aAAa,0CAAE,KAAK,CAAC,GAAG,CAAC,mCAAI,EAAE,CAAC;QACtE,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IAC/C,CAAC;CACF,CAAA;AAxGY,8BAAS;oBAAT,SAAS;IADrB,IAAA,mBAAU,GAAE;IAIR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,sBAAa,CAAC,CAAC,CAAA;qCADrB,gBAAS;QAEH,sBAAa;GAJ7B,SAAS,CAwGrB"}
@@ -6,11 +6,51 @@ import { RoleService } from './role.service';
6
6
  export declare class RoleController {
7
7
  private readonly roleService;
8
8
  constructor(roleService: RoleService);
9
- list(paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
10
- listUsers(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
- listRoutes(paginationParams: any, roleId: number): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
13
- listScreens(paginationParams: any, roleId: number, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
9
+ list(paginationParams: any, locale: any): Promise<{
10
+ total: number;
11
+ lastPage: number;
12
+ page: number;
13
+ pageSize: number;
14
+ prev: number;
15
+ next: number;
16
+ data: any[];
17
+ }>;
18
+ listUsers(paginationParams: any, roleId: number): Promise<{
19
+ total: number;
20
+ lastPage: number;
21
+ page: number;
22
+ pageSize: number;
23
+ prev: number;
24
+ next: number;
25
+ data: any[];
26
+ }>;
27
+ listMenus(paginationParams: any, roleId: number, locale: any): Promise<{
28
+ total: number;
29
+ lastPage: number;
30
+ page: number;
31
+ pageSize: number;
32
+ prev: number;
33
+ next: number;
34
+ data: any[];
35
+ }>;
36
+ listRoutes(paginationParams: any, roleId: number): Promise<{
37
+ total: number;
38
+ lastPage: number;
39
+ page: number;
40
+ pageSize: number;
41
+ prev: number;
42
+ next: number;
43
+ data: any[];
44
+ }>;
45
+ listScreens(paginationParams: any, roleId: number, locale: any): Promise<{
46
+ total: number;
47
+ lastPage: number;
48
+ page: number;
49
+ pageSize: number;
50
+ prev: number;
51
+ next: number;
52
+ data: any[];
53
+ }>;
14
54
  updateUsers(roleId: number, data: UpdateIdsDTO): Promise<any>;
15
55
  updateMenus(roleId: number, data: UpdateIdsDTO): Promise<any>;
16
56
  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":"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,IAAI,CAAe,gBAAgB,KA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A,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,gBAAgB,KAAA,EACC,MAAM,EAAE,MAAM,EACnC,MAAM,KAAA;;;;;;;;;IAMZ,WAAW,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"}
@@ -18,7 +18,7 @@ const common_1 = require("@nestjs/common");
18
18
  const delete_dto_1 = require("../dto/delete.dto");
19
19
  const update_ids_dto_1 = require("../dto/update-ids.dto");
20
20
  const locale_1 = require("@hedhog/locale");
21
- const utils_1 = require("@hedhog/utils");
21
+ const core_1 = require("@hedhog/core");
22
22
  const create_dto_1 = require("./dto/create.dto");
23
23
  const update_dto_1 = require("./dto/update.dto");
24
24
  const role_service_1 = require("./role.service");
@@ -104,7 +104,7 @@ __decorate([
104
104
  __metadata("design:returntype", Promise)
105
105
  ], RoleController.prototype, "listRoutes", null);
106
106
  __decorate([
107
- (0, common_1.Get)(':roleId/screens'),
107
+ (0, common_1.Get)(':roleId/screen'),
108
108
  __param(0, (0, pagination_1.Pagination)()),
109
109
  __param(1, (0, common_1.Param)('roleId', common_1.ParseIntPipe)),
110
110
  __param(2, (0, locale_1.Locale)()),
@@ -137,7 +137,7 @@ __decorate([
137
137
  __metadata("design:returntype", Promise)
138
138
  ], RoleController.prototype, "updateRoutes", null);
139
139
  __decorate([
140
- (0, common_1.Patch)(':roleId/screens'),
140
+ (0, common_1.Patch)(':roleId/screen'),
141
141
  __param(0, (0, common_1.Param)('roleId', common_1.ParseIntPipe)),
142
142
  __param(1, (0, common_1.Body)()),
143
143
  __metadata("design:type", Function),
@@ -175,7 +175,7 @@ __decorate([
175
175
  __metadata("design:returntype", Promise)
176
176
  ], RoleController.prototype, "delete", null);
177
177
  exports.RoleController = RoleController = __decorate([
178
- (0, utils_1.Role)(),
178
+ (0, core_1.Role)(),
179
179
  (0, common_1.Controller)('role'),
180
180
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => role_service_1.RoleService))),
181
181
  __metadata("design:paramtypes", [role_service_1.RoleService])
@@ -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,2CAAwC;AACxC,yCAAqC;AACrC,iDAA6C;AAC7C,iDAA6C;AAC7C,iDAA6C;AAItC,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAEmB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IACxC,CAAC;IAGE,AAAN,KAAK,CAAC,IAAI,CAAe,gBAAgB,EAAY,MAAM;QACzD,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACzD,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,E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