@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,242 +1,259 @@
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 screen_service_1 = require("./screen.service");
8
- describe('ScreenService', () => {
9
- let service;
10
- let prismaService;
11
- let paginationService;
12
- beforeEach(async () => {
13
- const module = await testing_1.Test.createTestingModule({
14
- providers: [
15
- screen_service_1.ScreenService,
16
- {
17
- provide: prisma_1.PrismaService,
18
- useValue: {
19
- screens: {
20
- create: jest.fn(),
21
- update: jest.fn(),
22
- deleteMany: jest.fn(),
23
- findUnique: jest.fn(),
24
- },
25
- route: {
26
- findMany: jest.fn(),
27
- },
28
- role_screen: {
29
- deleteMany: jest.fn(),
30
- createMany: jest.fn(),
31
- },
32
- route_screens: {
33
- deleteMany: jest.fn(),
34
- createMany: jest.fn(),
35
- },
36
- createInsensitiveSearch: jest.fn(),
37
- },
38
- },
39
- {
40
- provide: pagination_1.PaginationService,
41
- useValue: {
42
- paginate: jest.fn(),
43
- },
44
- },
45
- ],
46
- }).compile();
47
- service = module.get(screen_service_1.ScreenService);
48
- prismaService = module.get(prisma_1.PrismaService);
49
- paginationService = module.get(pagination_1.PaginationService);
50
- });
51
- it('should be defined', () => {
52
- expect(service).toBeDefined();
53
- });
54
- describe('create', () => {
55
- it('should create a screen', async () => {
56
- const createDTO = {
57
- name: 'Test Screen',
58
- slug: 'test-screen',
59
- description: 'This is a test screen',
60
- icon: 'test-icon',
61
- };
62
- jest
63
- .spyOn(prismaService.screens, 'create')
64
- .mockResolvedValue(createDTO);
65
- const result = await service.create(createDTO);
66
- expect(prismaService.screens.create).toHaveBeenCalledWith({
67
- data: createDTO,
68
- });
69
- expect(result).toEqual(createDTO);
70
- });
71
- });
72
- describe('delete', () => {
73
- it('should throw an error if no ids are provided', async () => {
74
- const deleteDTO = { ids: null };
75
- await expect(service.delete(deleteDTO)).rejects.toThrow(new common_1.BadRequestException(`You must select at least one screen to delete.`));
76
- });
77
- it('should delete screens by ids', async () => {
78
- const deleteDTO = { ids: [1, 2] };
79
- jest.spyOn(prismaService.screens, 'deleteMany').mockResolvedValue({
80
- count: 2,
81
- });
82
- await service.delete(deleteDTO);
83
- expect(prismaService.screens.deleteMany).toHaveBeenCalledWith({
84
- where: { id: { in: deleteDTO.ids } },
85
- });
86
- });
87
- });
88
- describe('update', () => {
89
- it('should update a screen', async () => {
90
- const updateDTO = {
91
- id: 1,
92
- name: 'Updated Screen',
93
- slug: 'updated-screen',
94
- icon: 'update-icon',
95
- created_at: new Date(),
96
- updated_at: new Date(),
97
- };
98
- const updateInput = { id: 1, data: updateDTO };
99
- jest.spyOn(prismaService.screens, 'update').mockResolvedValue(updateDTO);
100
- const result = await service.update(updateInput);
101
- expect(prismaService.screens.update).toHaveBeenCalledWith({
102
- where: { id: updateInput.id },
103
- data: updateInput.data,
104
- });
105
- expect(result).toEqual(updateDTO);
106
- });
107
- });
108
- describe('get', () => {
109
- it('should get a screen by id', async () => {
110
- const screen = {
111
- id: 1,
112
- name: 'Updated Screen',
113
- slug: 'updated-screen',
114
- icon: 'update-icon',
115
- created_at: new Date(),
116
- updated_at: new Date(),
117
- };
118
- jest.spyOn(prismaService.screens, 'findUnique').mockResolvedValue(screen);
119
- const result = await service.get(1);
120
- expect(prismaService.screens.findUnique).toHaveBeenCalledWith({
121
- where: { id: 1 },
122
- });
123
- expect(result).toEqual(screen);
124
- });
125
- });
126
- describe('updateRoles', () => {
127
- it('should update role for a screen', async () => {
128
- const screenId = 1;
129
- const updateIdsDTO = { ids: [1, 2, 3] };
130
- jest.spyOn(prismaService.role_screen, 'deleteMany').mockResolvedValue({
131
- count: 1,
132
- });
133
- jest.spyOn(prismaService.role_screen, 'createMany').mockResolvedValue({
134
- count: updateIdsDTO.ids.length,
135
- });
136
- await service.updateRoles(screenId, updateIdsDTO);
137
- expect(prismaService.role_screen.deleteMany).toHaveBeenCalledWith({
138
- where: { screen_id: screenId },
139
- });
140
- expect(prismaService.role_screen.createMany).toHaveBeenCalledWith({
141
- data: updateIdsDTO.ids.map((roleId) => ({
142
- screen_id: screenId,
143
- role_id: roleId,
144
- })),
145
- skipDuplicates: true,
146
- });
147
- });
148
- });
149
- describe('updateRoutes', () => {
150
- it('should delete existing route_screens and create new ones', async () => {
151
- const screenId = 1;
152
- const updateIdsDTO = { ids: [1, 2, 3] };
153
- prismaService.route.findMany = jest
154
- .fn()
155
- .mockResolvedValue([{ id: 1 }, { id: 2 }, { id: 3 }]);
156
- prismaService.route_screens.deleteMany = jest.fn();
157
- prismaService.route_screens.createMany = jest.fn();
158
- await service.updateRoutes(screenId, updateIdsDTO);
159
- expect(prismaService.route.findMany).toHaveBeenCalledWith({
160
- where: { id: { in: updateIdsDTO.ids } },
161
- select: { id: true },
162
- });
163
- expect(prismaService.route_screens.deleteMany).toHaveBeenCalledWith({
164
- where: { screen_id: screenId },
165
- });
166
- expect(prismaService.route_screens.createMany).toHaveBeenCalledWith({
167
- data: updateIdsDTO.ids.map((routeId) => ({
168
- screen_id: screenId,
169
- route_id: routeId,
170
- })),
171
- skipDuplicates: true,
172
- });
173
- });
174
- });
175
- describe('listRoles', () => {
176
- it('should call paginate method with correct parameters', async () => {
177
- const locale = 'en';
178
- const screenId = 1;
179
- const paginationParams = {
180
- page: 1,
181
- pageSize: 10,
182
- search: '',
183
- sortField: '',
184
- sortOrder: pagination_1.PageOrderDirection.Asc,
185
- fields: '',
186
- };
187
- paginationService.paginate = jest.fn().mockResolvedValue({
188
- data: [],
189
- total: 0,
190
- });
191
- await service.listRoles(locale, screenId, paginationParams);
192
- expect(paginationService.paginate).toHaveBeenCalledWith(prismaService.role, paginationParams, {
193
- include: {
194
- role_screen: {
195
- where: {
196
- screen_id: screenId,
197
- },
198
- select: {
199
- role_id: true,
200
- screen_id: true,
201
- },
202
- },
203
- },
204
- });
205
- });
206
- });
207
- describe('listRoutes', () => {
208
- it('should paginate the route linked to a screen', async () => {
209
- const paginationParams = {
210
- page: 1,
211
- pageSize: 10,
212
- search: '',
213
- sortField: '',
214
- sortOrder: pagination_1.PageOrderDirection.Asc,
215
- fields: '',
216
- };
217
- const screenId = 1;
218
- const mockPaginationResult = {
219
- data: [],
220
- total: 10,
221
- lastPage: 1,
222
- page: 1,
223
- prev: 0,
224
- next: 2,
225
- pageSize: 10,
226
- };
227
- jest
228
- .spyOn(paginationService, 'paginate')
229
- .mockResolvedValue(mockPaginationResult);
230
- await service.listRoutes(screenId, paginationParams);
231
- expect(paginationService.paginate).toHaveBeenCalledWith(prismaService.route, paginationParams, {
232
- include: {
233
- route_screens: {
234
- where: { screen_id: screenId },
235
- select: { route_id: true, screen_id: true },
236
- },
237
- },
238
- });
239
- });
240
- });
241
- });
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 { DeleteDTO } from '../dto/delete.dto';
11
+ // import { UpdateIdsDTO } from '../dto/update-ids.dto';
12
+ // import { ScreenService } from './screen.service';
13
+ // describe('ScreenService', () => {
14
+ // let service: ScreenService;
15
+ // let prismaService: PrismaService;
16
+ // let paginationService: PaginationService;
17
+ // beforeEach(async () => {
18
+ // const module: TestingModule = await Test.createTestingModule({
19
+ // providers: [
20
+ // ScreenService,
21
+ // {
22
+ // provide: PrismaService,
23
+ // useValue: {
24
+ // screens: {
25
+ // create: jest.fn(),
26
+ // update: jest.fn(),
27
+ // deleteMany: jest.fn(),
28
+ // findUnique: jest.fn(),
29
+ // },
30
+ // route: {
31
+ // findMany: jest.fn(),
32
+ // },
33
+ // role_screen: {
34
+ // deleteMany: jest.fn(),
35
+ // createMany: jest.fn(),
36
+ // },
37
+ // route_screens: {
38
+ // deleteMany: jest.fn(),
39
+ // createMany: jest.fn(),
40
+ // },
41
+ // createInsensitiveSearch: jest.fn(),
42
+ // },
43
+ // },
44
+ // {
45
+ // provide: PaginationService,
46
+ // useValue: {
47
+ // paginate: jest.fn(),
48
+ // },
49
+ // },
50
+ // ],
51
+ // }).compile();
52
+ // service = module.get<ScreenService>(ScreenService);
53
+ // prismaService = module.get<PrismaService>(PrismaService);
54
+ // paginationService = module.get<PaginationService>(PaginationService);
55
+ // });
56
+ // it('should be defined', () => {
57
+ // expect(service).toBeDefined();
58
+ // });
59
+ // describe('create', () => {
60
+ // it('should create a screen', async () => {
61
+ // const createDTO = {
62
+ // name: 'Test Screen',
63
+ // slug: 'test-screen',
64
+ // description: 'This is a test screen',
65
+ // icon: 'test-icon',
66
+ // };
67
+ // jest
68
+ // .spyOn(prismaService.screens, 'create')
69
+ // .mockResolvedValue(createDTO as any);
70
+ // const result = await service.create(createDTO);
71
+ // expect(prismaService.screens.create).toHaveBeenCalledWith({
72
+ // data: createDTO,
73
+ // });
74
+ // expect(result).toEqual(createDTO);
75
+ // });
76
+ // });
77
+ // describe('delete', () => {
78
+ // it('should throw an error if no ids are provided', async () => {
79
+ // const deleteDTO: DeleteDTO = { ids: null };
80
+ // await expect(service.delete(deleteDTO)).rejects.toThrow(
81
+ // new BadRequestException(
82
+ // `You must select at least one screen to delete.`,
83
+ // ),
84
+ // );
85
+ // });
86
+ // it('should delete screens by ids', async () => {
87
+ // const deleteDTO: DeleteDTO = { ids: [1, 2] };
88
+ // jest.spyOn(prismaService.screens, 'deleteMany').mockResolvedValue({
89
+ // count: 2,
90
+ // });
91
+ // await service.delete(deleteDTO);
92
+ // expect(prismaService.screens.deleteMany).toHaveBeenCalledWith({
93
+ // where: { id: { in: deleteDTO.ids } },
94
+ // });
95
+ // });
96
+ // });
97
+ // describe('update', () => {
98
+ // it('should update a screen', async () => {
99
+ // const updateDTO = {
100
+ // id: 1,
101
+ // name: 'Updated Screen',
102
+ // slug: 'updated-screen',
103
+ // icon: 'update-icon',
104
+ // created_at: new Date(),
105
+ // updated_at: new Date(),
106
+ // };
107
+ // const updateInput = { id: 1, data: updateDTO };
108
+ // jest.spyOn(prismaService.screens, 'update').mockResolvedValue(updateDTO);
109
+ // const result = await service.update(updateInput);
110
+ // expect(prismaService.screens.update).toHaveBeenCalledWith({
111
+ // where: { id: updateInput.id },
112
+ // data: updateInput.data,
113
+ // });
114
+ // expect(result).toEqual(updateDTO);
115
+ // });
116
+ // });
117
+ // describe('get', () => {
118
+ // it('should get a screen by id', async () => {
119
+ // const screen = {
120
+ // id: 1,
121
+ // name: 'Updated Screen',
122
+ // slug: 'updated-screen',
123
+ // icon: 'update-icon',
124
+ // created_at: new Date(),
125
+ // updated_at: new Date(),
126
+ // };
127
+ // jest.spyOn(prismaService.screens, 'findUnique').mockResolvedValue(screen);
128
+ // const result = await service.get(1);
129
+ // expect(prismaService.screens.findUnique).toHaveBeenCalledWith({
130
+ // where: { id: 1 },
131
+ // });
132
+ // expect(result).toEqual(screen);
133
+ // });
134
+ // });
135
+ // describe('updateRoles', () => {
136
+ // it('should update role for a screen', async () => {
137
+ // const screenId = 1;
138
+ // const updateIdsDTO: UpdateIdsDTO = { ids: [1, 2, 3] };
139
+ // jest.spyOn(prismaService.role_screen, 'deleteMany').mockResolvedValue({
140
+ // count: 1,
141
+ // });
142
+ // jest.spyOn(prismaService.role_screen, 'createMany').mockResolvedValue({
143
+ // count: updateIdsDTO.ids.length,
144
+ // });
145
+ // await service.updateRoles(screenId, updateIdsDTO);
146
+ // expect(prismaService.role_screen.deleteMany).toHaveBeenCalledWith({
147
+ // where: { screen_id: screenId },
148
+ // });
149
+ // expect(prismaService.role_screen.createMany).toHaveBeenCalledWith({
150
+ // data: updateIdsDTO.ids.map((roleId) => ({
151
+ // screen_id: screenId,
152
+ // role_id: roleId,
153
+ // })),
154
+ // skipDuplicates: true,
155
+ // });
156
+ // });
157
+ // });
158
+ // describe('updateRoutes', () => {
159
+ // it('should delete existing route_screens and create new ones', async () => {
160
+ // const screenId = 1;
161
+ // const updateIdsDTO: UpdateIdsDTO = { ids: [1, 2, 3] };
162
+ // prismaService.route.findMany = jest
163
+ // .fn()
164
+ // .mockResolvedValue([{ id: 1 }, { id: 2 }, { id: 3 }]);
165
+ // prismaService.route_screens.deleteMany = jest.fn();
166
+ // prismaService.route_screens.createMany = jest.fn();
167
+ // await service.updateRoutes(screenId, updateIdsDTO);
168
+ // expect(prismaService.route.findMany).toHaveBeenCalledWith({
169
+ // where: { id: { in: updateIdsDTO.ids } },
170
+ // select: { id: true },
171
+ // });
172
+ // expect(prismaService.route_screens.deleteMany).toHaveBeenCalledWith({
173
+ // where: { screen_id: screenId },
174
+ // });
175
+ // expect(prismaService.route_screens.createMany).toHaveBeenCalledWith({
176
+ // data: updateIdsDTO.ids.map((routeId) => ({
177
+ // screen_id: screenId,
178
+ // route_id: routeId,
179
+ // })),
180
+ // skipDuplicates: true,
181
+ // });
182
+ // });
183
+ // });
184
+ // describe('listRoles', () => {
185
+ // it('should call paginate method with correct parameters', async () => {
186
+ // const locale = 'en';
187
+ // const screenId = 1;
188
+ // const paginationParams: PaginationDTO = {
189
+ // page: 1,
190
+ // pageSize: 10,
191
+ // search: '',
192
+ // sortField: '',
193
+ // sortOrder: PageOrderDirection.Asc,
194
+ // fields: '',
195
+ // };
196
+ // paginationService.paginate = jest.fn().mockResolvedValue({
197
+ // data: [],
198
+ // total: 0,
199
+ // });
200
+ // await service.listRoles(locale, screenId, paginationParams);
201
+ // expect(paginationService.paginate).toHaveBeenCalledWith(
202
+ // prismaService.role,
203
+ // paginationParams,
204
+ // {
205
+ // include: {
206
+ // role_screen: {
207
+ // where: {
208
+ // screen_id: screenId,
209
+ // },
210
+ // select: {
211
+ // role_id: true,
212
+ // screen_id: true,
213
+ // },
214
+ // },
215
+ // },
216
+ // },
217
+ // );
218
+ // });
219
+ // });
220
+ // describe('listRoutes', () => {
221
+ // it('should paginate the route linked to a screen', async () => {
222
+ // const paginationParams: PaginationDTO = {
223
+ // page: 1,
224
+ // pageSize: 10,
225
+ // search: '',
226
+ // sortField: '',
227
+ // sortOrder: PageOrderDirection.Asc,
228
+ // fields: '',
229
+ // };
230
+ // const screenId = 1;
231
+ // const mockPaginationResult = {
232
+ // data: [],
233
+ // total: 10,
234
+ // lastPage: 1,
235
+ // page: 1,
236
+ // prev: 0,
237
+ // next: 2,
238
+ // pageSize: 10,
239
+ // };
240
+ // jest
241
+ // .spyOn(paginationService, 'paginate')
242
+ // .mockResolvedValue(mockPaginationResult);
243
+ // await service.listRoutes(screenId, paginationParams);
244
+ // expect(paginationService.paginate).toHaveBeenCalledWith(
245
+ // prismaService.route,
246
+ // paginationParams,
247
+ // {
248
+ // include: {
249
+ // route_screens: {
250
+ // where: { screen_id: screenId },
251
+ // select: { route_id: true, screen_id: true },
252
+ // },
253
+ // },
254
+ // },
255
+ // );
256
+ // });
257
+ // });
258
+ // });
242
259
  //# sourceMappingURL=screen.service.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"screen.service.spec.js","sourceRoot":"","sources":["../../src/screen/screen.service.spec.ts"],"names":[],"mappings":";;AAAA,mDAI4B;AAC5B,2CAA+C;AAC/C,2CAAqD;AACrD,6CAAsD;AAGtD,qDAAiD;AAEjD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAI,OAAsB,CAAC;IAC3B,IAAI,aAA4B,CAAC;IACjC,IAAI,iBAAoC,CAAC;IAEzC,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,MAAM,GAAkB,MAAM,cAAI,CAAC,mBAAmB,CAAC;YAC3D,SAAS,EAAE;gBACT,8BAAa;gBACb;oBACE,OAAO,EAAE,sBAAa;oBACtB,QAAQ,EAAE;wBACR,OAAO,EAAE;4BACP,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE;4BACjB,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE;4BACjB,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE;4BACrB,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE;yBACtB;wBACD,KAAK,EAAE;4BACL,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE;yBACpB;wBACD,WAAW,EAAE;4BACX,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE;4BACrB,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,SAAS,EAAE,EAAE;gBACb,SAAS,EAAE,+BAAkB,CAAC,GAAG;gBACjC,MAAM,EAAE,EAAE;aACX,CAAC;YACF,MAAM,QAAQ,GAAG,CAAC,CAAC;YACnB,MAAM,oBAAoB,GAAG;gBAC3B,IAAI,EAAE,EAAE;gBACR,KAAK,EAAE,EAAE;gBACT,QAAQ,EAAE,CAAC;gBACX,IAAI,EAAE,CAAC;gBACP,IAAI,EAAE,CAAC;gBACP,IAAI,EAAE,CAAC;gBACP,QAAQ,EAAE,EAAE;aACb,CAAC;YAEF,IAAI;iBACD,KAAK,CAAC,iBAAiB,EAAE,UAAU,CAAC;iBACpC,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;YAE3C,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;YAErD,MAAM,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,oBAAoB,CACrD,aAAa,CAAC,KAAK,EACnB,gBAAgB,EAChB;gBACE,OAAO,EAAE;oBACP,aAAa,EAAE;wBACb,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE;wBAC9B,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE;qBAC5C;iBACF;aACF,CACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"screen.service.spec.js","sourceRoot":"","sources":["../../src/screen/screen.service.spec.ts"],"names":[],"mappings":";AAAA,WAAW;AACX,wBAAwB;AACxB,mBAAmB;AACnB,uBAAuB;AACvB,+BAA+B;AAC/B,kDAAkD;AAClD,wDAAwD;AACxD,yDAAyD;AACzD,iDAAiD;AACjD,wDAAwD;AACxD,oDAAoD;AAEpD,oCAAoC;AACpC,gCAAgC;AAChC,sCAAsC;AACtC,8CAA8C;AAE9C,6BAA6B;AAC7B,qEAAqE;AACrE,qBAAqB;AACrB,yBAAy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ACtB,WAAW;AAEX,mEAAmE;AACnE,oBAAoB;AACpB,oBAAoB;AACpB,YAAY;AAEZ,qEAAqE;AAErE,iEAAiE;AACjE,8BAA8B;AAC9B,4BAA4B;AAC5B,YAAY;AACZ,uBAAuB;AACvB,6BAA6B;AAC7B,yBAAyB;AACzB,uCAAuC;AACvC,mBAAmB;AACnB,0BAA0B;AAC1B,iCAAiC;AACjC,mCAAmC;AACnC,mBAAmB;AACnB,iBAAiB;AACjB,eAAe;AACf,aAAa;AACb,WAAW;AACX,UAAU;AACV,QAAQ;AAER,mCAAmC;AACnC,uEAAuE;AACvE,kDAAkD;AAClD,mBAAmB;AACnB,wBAAwB;AACxB,sBAAsB;AACtB,yBAAyB;AACzB,6CAA6C;AAC7C,sBAAsB;AACtB,WAAW;AACX,4BAA4B;AAC5B,uCAAuC;AACvC,oBAAoB;AACpB,qBAAqB;AACrB,uBAAuB;AACvB,mBAAmB;AACnB,mBAAmB;AACnB,mBAAmB;AACnB,wBAAwB;AACxB,WAAW;AAEX,aAAa;AACb,gDAAgD;AAChD,oDAAoD;AAEpD,8DAA8D;AAE9D,iEAAiE;AACjE,+BAA+B;AAC/B,4BAA4B;AAC5B,YAAY;AACZ,uBAAuB;AACvB,+BAA+B;AAC/B,gDAAgD;AAChD,6DAA6D;AAC7D,iBAAiB;AACjB,eAAe;AACf,aAAa;AACb,WAAW;AACX,UAAU;AACV,QAAQ;AACR,MAAM"}
@@ -6,8 +6,24 @@ import { UserService } from './user.service';
6
6
  export declare class UserController {
7
7
  private readonly userService;
8
8
  constructor(userService: UserService);
9
- list(paginationParams: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
10
- listRoles(userId: number, paginationParams: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
9
+ list(paginationParams: 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
+ listRoles(userId: number, paginationParams: any): Promise<{
19
+ total: number;
20
+ lastPage: number;
21
+ page: number;
22
+ pageSize: number;
23
+ prev: number;
24
+ next: number;
25
+ data: any[];
26
+ }>;
11
27
  updateRoles(userId: number, data: UpdateIdsDTO): Promise<any>;
12
28
  get(userId: number): Promise<any>;
13
29
  create(data: CreateDTO): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"user.controller.d.ts","sourceRoot":"","sources":["../../src/user/user.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,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,KAAA;IAKnC,SAAS,CACkB,MAAM,EAAE,MAAM,EAC/B,gBAAgB,KAAA;IAM1B,WAAW,CACgB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,GAAG,CAAgC,MAAM,EAAE,MAAM;IAKvD,MAAM,CAAS,IAAI,EAAE,SAAS;IAKxB,MAAM,CACqB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
1
+ {"version":3,"file":"user.controller.d.ts","sourceRoot":"","sources":["../../src/user/user.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,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,KAAA;;;;;;;;;IAKnC,SAAS,CACkB,MAAM,EAAE,MAAM,EAC/B,gBAAgB,KAAA;;;;;;;;;IAM1B,WAAW,CACgB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,GAAG,CAAgC,MAAM,EAAE,MAAM;IAKvD,MAAM,CAAS,IAAI,EAAE,SAAS;IAKxB,MAAM,CACqB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
@@ -17,7 +17,7 @@ const pagination_1 = require("@hedhog/pagination");
17
17
  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
- const utils_1 = require("@hedhog/utils");
20
+ const core_1 = require("@hedhog/core");
21
21
  const create_dto_1 = require("./dto/create.dto");
22
22
  const update_dto_1 = require("./dto/update.dto");
23
23
  const user_service_1 = require("./user.service");
@@ -104,7 +104,7 @@ __decorate([
104
104
  __metadata("design:returntype", Promise)
105
105
  ], UserController.prototype, "delete", null);
106
106
  exports.UserController = UserController = __decorate([
107
- (0, utils_1.Role)(),
107
+ (0, core_1.Role)(),
108
108
  (0, common_1.Controller)('user'),
109
109
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => user_service_1.UserService))),
110
110
  __metadata("design:paramtypes", [user_service_1.UserService])
@@ -1 +1 @@
1
- {"version":3,"file":"user.controller.js","sourceRoot":"","sources":["../../src/user/user.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAWwB;AACxB,kDAA8C;AAC9C,0DAAqD;AACrD,yCAAqC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