@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
@@ -1 +1 @@
1
- {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AAG,EAAC,cAAc,CAAC;IAEjB,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;IAC7B,WAAA,IAAA,uBAAU,GAAE,CAAA;;;;+CAGd;AAGK;IADL,IAAA,cAAK,EAAC,cAAc,CAAC;IAEnB,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;IAC7B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,6BAAY;;iDAG3B;AAGK;IADL,IAAA,YAAG,EAAC,SAAS,CAAC;IACJ,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;;;;yCAEvC;AAGD;IADC,IAAA,aAAI,GAAE;IACC,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;4CAE7B;AAGK;IADL,IAAA,cAAK,EAAC,SAAS,CAAC;IAEd,WAAA,IAAA,cAAK,EAAC,QAAQ,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;yBAnDU,cAAc;IAF1B,IAAA,WAAI,GAAE;IACN,IAAA,mBAAU,EAAC,MAAM,CAAC;IAGd,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC,CAAC,CAAA;qCACR,0BAAW;GAHhC,cAAc,CAoD1B"}
@@ -9,15 +9,42 @@ export declare class UserService {
9
9
  private readonly paginationService;
10
10
  constructor(prismaService: PrismaService, paginationService: PaginationService);
11
11
  listRoles(userId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
12
- updateRoles(userId: number, { ids }: UpdateIdsDTO): Promise<any>;
12
+ updateRoles(userId: number, { ids }: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
13
13
  list(paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
14
- get(userId: number): Promise<any>;
14
+ get(userId: number): Promise<{
15
+ code: string | null;
16
+ name: string;
17
+ id: number;
18
+ created_at: Date;
19
+ updated_at: Date;
20
+ multifactor_id: number | null;
21
+ email: string;
22
+ password: string;
23
+ }>;
15
24
  hashPassword(password: string): Promise<string>;
16
- create({ email, name, password }: CreateDTO): Promise<any>;
25
+ create({ email, name, password }: CreateDTO): Promise<{
26
+ code: string | null;
27
+ name: string;
28
+ id: number;
29
+ created_at: Date;
30
+ updated_at: Date;
31
+ multifactor_id: number | null;
32
+ email: string;
33
+ password: string;
34
+ }>;
17
35
  update({ id, data }: {
18
36
  id: number;
19
37
  data: UpdateDTO;
20
- }): Promise<any>;
21
- delete({ ids }: DeleteDTO): Promise<any>;
38
+ }): Promise<{
39
+ code: string | null;
40
+ name: string;
41
+ id: number;
42
+ created_at: Date;
43
+ updated_at: Date;
44
+ multifactor_id: number | null;
45
+ email: string;
46
+ password: string;
47
+ }>;
48
+ delete({ ids }: DeleteDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
22
49
  }
23
50
  //# sourceMappingURL=user.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.service.d.ts","sourceRoot":"","sources":["../../src/user/user.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAQ/C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,WAAW;IAGpB,OAAO,CAAC,QAAQ,CAAC,aAAa;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E,gBAAgB,EAAE,aAAa;IAoBzD,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,YAAY;IAkBjD,IAAI,CAAC,gBAAgB,EAAE,aAAa;IAkBpC,GAAG,CAAC,MAAM,EAAE,MAAM;;;;;;;;;;IAIlB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAK/C,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,SAAS;;;;;;;;;;IAY3C,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;CAoBhC"}
package/hedhog.yaml CHANGED
@@ -203,16 +203,16 @@ data:
203
203
  en: Route
204
204
  pt: Rotas
205
205
  slug: /management/route
206
- - menu_id:
207
- where:
208
- slug: /management
209
- url: /management/setting
206
+ - url: /management/setting
210
207
  icon: settings
211
208
  name:
212
209
  en: Setting
213
210
  pt: Configurações
214
211
  slug: /management/setting
215
- - slug: /settings
212
+ - menu_id:
213
+ where:
214
+ slug: /management
215
+ slug: /settings
216
216
  icon: settings
217
217
  name:
218
218
  en: Settings
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/admin",
3
- "version": "0.0.121",
3
+ "version": "0.0.123",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -21,12 +21,12 @@
21
21
  "license": "MIT",
22
22
  "description": "",
23
23
  "devDependencies": {
24
- "@hedhog/locale": "^0.0.18",
24
+ "@hedhog/locale": "^0.0.22",
25
25
  "@hedhog/mail": "^0.0.14",
26
26
  "@hedhog/pagination": "^0.0.17",
27
27
  "@hedhog/prisma": "^0.0.11",
28
28
  "@hedhog/setting": "^0.0.14",
29
- "@hedhog/utils": "^0.0.21",
29
+ "@hedhog/utils": "^0.0.27",
30
30
  "@nestjs/mapped-types": "^2.0.5",
31
31
  "ts-node": "^10.9.1",
32
32
  "typescript": "^5.1.3"
@@ -6,7 +6,7 @@ import {
6
6
  Inject,
7
7
  Post,
8
8
  } from '@nestjs/common';
9
- import { Role, Public, User } from '@hedhog/utils';
9
+ import { Role, Public, User } from '@hedhog/core';
10
10
  import { AuthService } from './auth.service';
11
11
  import { ForgetDTO } from './dto/forget.dto';
12
12
  import { LoginDTO } from './dto/login.dto';
@@ -7,7 +7,7 @@ import {
7
7
  import { Reflector } from '@nestjs/core';
8
8
  import { Request } from 'express';
9
9
  import { AuthService } from '../auth.service';
10
- import { IS_PUBLIC_KEY } from '@hedhog/utils';
10
+ import { IS_PUBLIC_KEY } from '@hedhog/core';
11
11
 
12
12
  @Injectable()
13
13
  export class AuthGuard implements CanActivate {
@@ -1,9 +1,9 @@
1
1
  import { IsInt, IsNotEmpty, IsOptional, IsString, Min } from 'class-validator';
2
2
 
3
3
  export class CreateDTO {
4
- @IsString({ message: 'O nome deve ser uma string' })
5
- @IsNotEmpty({ message: 'O nome é obrigatório.' })
6
- name: string;
4
+ @IsString({ message: 'O slug deve ser uma string' })
5
+ @IsNotEmpty({ message: 'O slug é obrigatório.' })
6
+ slug: string;
7
7
 
8
8
  @IsString({ message: 'A url deve ser uma string' })
9
9
  @IsNotEmpty({ message: 'A url é obrigatório.' })
@@ -14,7 +14,7 @@ import {
14
14
  import { DeleteDTO } from '../dto/delete.dto';
15
15
  import { UpdateIdsDTO } from '../dto/update-ids.dto';
16
16
  import { Locale } from '@hedhog/locale';
17
- import { Role, User } from '@hedhog/utils';
17
+ import { Role, User } from '@hedhog/core';
18
18
  import { CreateDTO } from './dto/create.dto';
19
19
  import { OrderDTO } from './dto/order.dto';
20
20
  import { UpdateDTO } from './dto/update.dto';
@@ -47,7 +47,7 @@ export class MenuController {
47
47
  return this.menuService.listRoles(locale, menuId, paginationParams);
48
48
  }
49
49
 
50
- @Get(':menuId/screens')
50
+ @Get(':menuId/screen')
51
51
  async listScreens(
52
52
  @Param('menuId', ParseIntPipe) menuId: number,
53
53
  @Pagination() paginationParams,
@@ -64,7 +64,7 @@ export class MenuController {
64
64
  return this.menuService.updateRoles(menuId, data);
65
65
  }
66
66
 
67
- @Patch(':menuId/screens')
67
+ @Patch(':menuId/screen')
68
68
  async updateScreens(
69
69
  @Param('menuId', ParseIntPipe) menuId: number,
70
70
  @Body() data: UpdateIdsDTO,