@hedhog/admin 0.0.121 → 0.0.123

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. package/dist/auth/auth.controller.d.ts +10 -1
  2. package/dist/auth/auth.controller.d.ts.map +1 -1
  3. package/dist/auth/auth.controller.js +6 -6
  4. package/dist/auth/auth.controller.js.map +1 -1
  5. package/dist/auth/auth.service.d.ts +10 -1
  6. package/dist/auth/auth.service.d.ts.map +1 -1
  7. package/dist/auth/guards/auth.guard.js +2 -2
  8. package/dist/auth/guards/auth.guard.js.map +1 -1
  9. package/dist/menu/dto/create.dto.d.ts +1 -1
  10. package/dist/menu/dto/create.dto.js +3 -3
  11. package/dist/menu/menu.controller.d.ts +33 -6
  12. package/dist/menu/menu.controller.d.ts.map +1 -1
  13. package/dist/menu/menu.controller.js +5 -5
  14. package/dist/menu/menu.controller.js.map +1 -1
  15. package/dist/menu/menu.service.d.ts +33 -6
  16. package/dist/menu/menu.service.d.ts.map +1 -1
  17. package/dist/menu/menu.service.js +4 -4
  18. package/dist/menu/menu.service.js.map +1 -1
  19. package/dist/menu/menu.service.spec.d.ts +0 -1
  20. package/dist/menu/menu.service.spec.js +206 -190
  21. package/dist/menu/menu.service.spec.js.map +1 -1
  22. package/dist/role/guards/role.guard.js +3 -3
  23. package/dist/role/guards/role.guard.js.map +1 -1
  24. package/dist/role/role.controller.d.ts +5 -5
  25. package/dist/role/role.controller.js +4 -4
  26. package/dist/role/role.controller.js.map +1 -1
  27. package/dist/role/role.service.d.ts +7 -7
  28. package/dist/role/role.service.d.ts.map +1 -1
  29. package/dist/role/role.service.js +8 -4
  30. package/dist/role/role.service.js.map +1 -1
  31. package/dist/route/route.controller.d.ts +27 -6
  32. package/dist/route/route.controller.d.ts.map +1 -1
  33. package/dist/route/route.controller.js +2 -2
  34. package/dist/route/route.controller.js.map +1 -1
  35. package/dist/route/route.service.d.ts +27 -6
  36. package/dist/route/route.service.d.ts.map +1 -1
  37. package/dist/route/route.service.spec.d.ts +0 -1
  38. package/dist/route/route.service.spec.js +260 -249
  39. package/dist/route/route.service.spec.js.map +1 -1
  40. package/dist/screen/dto/create.dto.d.ts +0 -2
  41. package/dist/screen/dto/create.dto.d.ts.map +1 -1
  42. package/dist/screen/dto/create.dto.js +0 -10
  43. package/dist/screen/dto/create.dto.js.map +1 -1
  44. package/dist/screen/screen.controller.d.ts +24 -6
  45. package/dist/screen/screen.controller.d.ts.map +1 -1
  46. package/dist/screen/screen.controller.js +2 -2
  47. package/dist/screen/screen.controller.js.map +1 -1
  48. package/dist/screen/screen.service.d.ts +24 -6
  49. package/dist/screen/screen.service.d.ts.map +1 -1
  50. package/dist/screen/screen.service.js +1 -3
  51. package/dist/screen/screen.service.js.map +1 -1
  52. package/dist/screen/screen.service.spec.d.ts +0 -1
  53. package/dist/screen/screen.service.spec.js +257 -240
  54. package/dist/screen/screen.service.spec.js.map +1 -1
  55. package/dist/user/user.controller.d.ts +32 -5
  56. package/dist/user/user.controller.d.ts.map +1 -1
  57. package/dist/user/user.controller.js +2 -2
  58. package/dist/user/user.controller.js.map +1 -1
  59. package/dist/user/user.service.d.ts +32 -5
  60. package/dist/user/user.service.d.ts.map +1 -1
  61. package/hedhog.yaml +5 -5
  62. package/package.json +3 -3
  63. package/src/auth/auth.controller.ts +1 -1
  64. package/src/auth/guards/auth.guard.ts +1 -1
  65. package/src/menu/dto/create.dto.ts +3 -3
  66. package/src/menu/menu.controller.ts +3 -3
  67. package/src/menu/menu.service.spec.ts +247 -247
  68. package/src/menu/menu.service.ts +3 -3
  69. package/src/role/guards/role.guard.ts +1 -1
  70. package/src/role/role.controller.ts +3 -3
  71. package/src/role/role.service.ts +8 -21
  72. package/src/route/route.controller.ts +1 -1
  73. package/src/route/route.service.spec.ts +300 -300
  74. package/src/screen/dto/create.dto.ts +0 -8
  75. package/src/screen/screen.controller.ts +1 -1
  76. package/src/screen/screen.service.spec.ts +298 -298
  77. package/src/screen/screen.service.ts +1 -3
  78. package/src/user/user.controller.ts +1 -1
@@ -9,11 +9,29 @@ export declare class ScreenController {
9
9
  list(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
11
  listRoutes(screenId: number, paginationParams: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
12
- updateRoles(screenId: number, data: UpdateIdsDTO): Promise<any>;
13
- updateRoutes(screenId: number, data: UpdateIdsDTO): Promise<any>;
14
- show(screenId: number): Promise<any>;
15
- create(data: CreateDTO): Promise<any>;
16
- update(screenId: number, data: UpdateDTO): Promise<any>;
17
- delete(data: DeleteDTO): Promise<any>;
12
+ updateRoles(screenId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
13
+ updateRoutes(screenId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
14
+ show(screenId: number): Promise<{
15
+ id: number;
16
+ created_at: Date;
17
+ updated_at: Date;
18
+ slug: string;
19
+ icon: string | null;
20
+ }>;
21
+ create(data: CreateDTO): Promise<{
22
+ id: number;
23
+ created_at: Date;
24
+ updated_at: Date;
25
+ slug: string;
26
+ icon: string | null;
27
+ }>;
28
+ update(screenId: number, data: UpdateDTO): Promise<{
29
+ id: number;
30
+ created_at: Date;
31
+ updated_at: Date;
32
+ slug: string;
33
+ icon: string | null;
34
+ }>;
35
+ delete(data: DeleteDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
18
36
  }
19
37
  //# sourceMappingURL=screen.controller.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"screen.controller.d.ts","sourceRoot":"","sources":["../../src/screen/screen.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,E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,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"}
@@ -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 screen_service_1 = require("./screen.service");
@@ -129,7 +129,7 @@ __decorate([
129
129
  __metadata("design:returntype", Promise)
130
130
  ], ScreenController.prototype, "delete", null);
131
131
  exports.ScreenController = ScreenController = __decorate([
132
- (0, utils_1.Role)(),
132
+ (0, core_1.Role)(),
133
133
  (0, common_1.Controller)('screen'),
134
134
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => screen_service_1.ScreenService))),
135
135
  __metadata("design:paramtypes", [screen_service_1.ScreenService])
@@ -1 +1 @@
1
- {"version":3,"file":"screen.controller.js","sourceRoot":"","sources":["../../src/screen/screen.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAWwB;AACxB,kDAA8C;AAC9C,0DAAqD;AACrD,2CAAwC;AACxC,yCAAqC;AACrC,iDAA6C;AAC7C,iDAA6C;AAC7C,qDAAiD;AAI1C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAEm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B,WAAA,IAAA,uBAAU,GAAE,CAAA;;;;kDAGd;AAGK;IADL,IAAA,cAAK,EAAC,gBAAgB,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,UAAU,EAAE,qBAAY,CAAC,CAAA;IAC/B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,6BAAY;;mDAG3B;AAGK;IADL,IAAA,cAAK,EAAC,iBAAiB,CAAC;IAEtB,WAAA,IAAA,cAAK,EAAC,UAAU,EAAE,qBAAY,CAAC,CAAA;IAC/B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,6BAAY;;oDAG3B;AAGK;IADL,IAAA,YAAG,EAAC,WAAW,CAAC;IACL,WAAA,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;IAF5B,IAAA,WAAI,GAAE;IACN,IAAA,mBAAU,EAAC,QAAQ,CAAC;IAGhB,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC,CAAC,CAAA;qCACR,8BAAa;GAHpC,gBAAgB,CAqE5B"}
@@ -8,17 +8,35 @@ export declare class ScreenService {
8
8
  private readonly prismaService;
9
9
  private readonly paginationService;
10
10
  constructor(prismaService: PrismaService, paginationService: PaginationService);
11
- updateRoles(screenId: number, data: UpdateIdsDTO): Promise<any>;
12
- updateRoutes(screenId: number, { ids }: UpdateIdsDTO): Promise<any>;
11
+ updateRoles(screenId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
12
+ updateRoutes(screenId: number, { ids }: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
13
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
  list(locale: string, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
16
- get(screenId: number): Promise<any>;
17
- create({ name, slug, description, icon }: CreateDTO): Promise<any>;
16
+ get(screenId: number): Promise<{
17
+ id: number;
18
+ created_at: Date;
19
+ updated_at: Date;
20
+ slug: string;
21
+ icon: string | null;
22
+ }>;
23
+ create({ slug, icon }: CreateDTO): Promise<{
24
+ id: number;
25
+ created_at: Date;
26
+ updated_at: Date;
27
+ slug: string;
28
+ icon: string | null;
29
+ }>;
18
30
  update({ id, data }: {
19
31
  id: number;
20
32
  data: UpdateDTO;
21
- }): Promise<any>;
22
- delete({ ids }: DeleteDTO): Promise<any>;
33
+ }): Promise<{
34
+ id: number;
35
+ created_at: Date;
36
+ updated_at: Date;
37
+ slug: string;
38
+ icon: string | null;
39
+ }>;
40
+ delete({ ids }: DeleteDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
23
41
  }
24
42
  //# sourceMappingURL=screen.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"screen.service.d.ts","sourceRoot":"","sources":["../../src/screen/screen.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,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uB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AAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,aAAa;IAGtB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;IAehD,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,YAAY;IA4BpD,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IAoB5D,SAAS,CACb,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,gBAAgB,EAAE,aAAa;IAqB3B,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IAkCpD,GAAG,CAAC,QAAQ,EAAE,MAAM;;;;;;;IAIpB,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,SAAS;;;;;;;IAShC,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"}
@@ -115,12 +115,10 @@ let ScreenService = class ScreenService {
115
115
  async get(screenId) {
116
116
  return this.prismaService.screen.findUnique({ where: { id: screenId } });
117
117
  }
118
- async create({ name, slug, description, icon }) {
118
+ async create({ slug, icon }) {
119
119
  return this.prismaService.screen.create({
120
120
  data: {
121
- name,
122
121
  slug,
123
- description,
124
122
  icon,
125
123
  },
126
124
  });
@@ -1 +1 @@
1
- {"version":3,"file":"screen.service.js","sourceRoot":"","sources":["../../src/screen/screen.service.ts"],"names":[],"mappings":";;;;;;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