@hedhog/admin 0.0.123 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,16 +6,7 @@ import { User as UserType } from './types/user.type';
6
6
  export declare class AuthController {
7
7
  private readonly service;
8
8
  constructor(service: AuthService);
9
- verify({ id }: UserType): Promise<{
10
- code: string | null;
11
- name: string;
12
- id: number;
13
- created_at: Date;
14
- updated_at: Date;
15
- multifactor_id: number | null;
16
- email: string;
17
- password: string;
18
- }>;
9
+ verify({ id }: UserType): Promise<any>;
19
10
  login({ email, password }: LoginDTO): Promise<{
20
11
  token: string;
21
12
  } | {
@@ -1 +1 @@
1
- {"version":3,"file":"auth.controller.d.ts","sourceRoot":"","sources":["../../src/auth/auth.controller.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAErD,qBACa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,WAAW;IAKjC,MAAM,CAAS,EAAE,EAAE,EAAE,EAAE,QAAQ;;;;;;;;;;IAM/B,KAAK,CAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ;;;;;;IAM3C,GAAG,CAAS,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,MAAM;;;IAMnC,MAAM,CAAS,EAAE,KAAK,EAAE,EAAE,SAAS;CAG1C"}
1
+ {"version":3,"file":"auth.controller.d.ts","sourceRoot":"","sources":["../../src/auth/auth.controller.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAErD,qBACa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,WAAW;IAKjC,MAAM,CAAS,EAAE,EAAE,EAAE,EAAE,QAAQ;IAM/B,KAAK,CAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ;;;;;;IAM3C,GAAG,CAAS,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,MAAM;;;IAMnC,MAAM,CAAS,EAAE,KAAK,EAAE,EAAE,SAAS;CAG1C"}
@@ -31,15 +31,6 @@ export declare class AuthService {
31
31
  token: string;
32
32
  mfa: boolean;
33
33
  }>;
34
- verify(id: number): import(".prisma/client").Prisma.Prisma__userClient<{
35
- code: string | null;
36
- name: string;
37
- id: number;
38
- created_at: Date;
39
- updated_at: Date;
40
- multifactor_id: number | null;
41
- email: string;
42
- password: string;
43
- }, null, import("@prisma/client/runtime/library").DefaultArgs>;
34
+ verify(id: number): any;
44
35
  }
45
36
  //# sourceMappingURL=auth.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.service.d.ts","sourceRoot":"","sources":["../../src/auth/auth.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAO/C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAGvC,qBACa,WAAW;IAGpB,OAAO,CAAC,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WAAW,CAAC,KAAK,EAAE,MAAM;IAM/B,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAW5C,oBAAoB,IAAI,MAAM;IAMxB,yBAAyB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;;;;;;IAgDzD,QAAQ,CAAC,IAAI,KAAA;;;IAUb,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,SAAS;IAkC3B,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,MAAM;;;IA0BjC,KAAK,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ;;;;;;IAInC,MAAM,CAAC,EAAE,EAAE,MAAM;CAGlB"}
@@ -10,42 +10,39 @@ export declare class MenuController {
10
10
  getSystemMenu({ id }: {
11
11
  id: any;
12
12
  }, locale: any): Promise<any[]>;
13
- list(paginationParams: any, locale: 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
- updateRoles(menuId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
17
- updateScreens(menuId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
18
- show(menuId: number): Promise<{
19
- id: number;
20
- created_at: Date;
21
- updated_at: Date;
22
- slug: string;
23
- icon: string | null;
24
- menu_id: number | null;
25
- url: string | null;
26
- order: number;
13
+ list(paginationParams: any, locale: any): Promise<{
14
+ total: any;
15
+ lastPage: number;
16
+ page: number;
17
+ pageSize: number;
18
+ prev: number;
19
+ next: number;
20
+ data: any;
27
21
  }>;
28
- create(data: CreateDTO): Promise<{
29
- id: number;
30
- created_at: Date;
31
- updated_at: Date;
32
- slug: string;
33
- icon: string | null;
34
- menu_id: number | null;
35
- url: string | null;
36
- order: number;
22
+ listRoles(menuId: number, paginationParams: any, locale: any): Promise<{
23
+ total: any;
24
+ lastPage: number;
25
+ page: number;
26
+ pageSize: number;
27
+ prev: number;
28
+ next: number;
29
+ data: any;
37
30
  }>;
38
- update(menuId: number, data: UpdateDTO): Promise<{
39
- id: number;
40
- created_at: Date;
41
- updated_at: Date;
42
- slug: string;
43
- icon: string | null;
44
- menu_id: number | null;
45
- url: string | null;
46
- order: number;
31
+ listScreens(menuId: number, paginationParams: any, locale: any): Promise<{
32
+ total: any;
33
+ lastPage: number;
34
+ page: number;
35
+ pageSize: number;
36
+ prev: number;
37
+ next: number;
38
+ data: any;
47
39
  }>;
48
- delete(data: DeleteDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
40
+ updateRoles(menuId: number, data: UpdateIdsDTO): Promise<any>;
41
+ updateScreens(menuId: number, data: UpdateIdsDTO): Promise<any>;
42
+ show(menuId: number): Promise<any>;
43
+ create(data: CreateDTO): Promise<any>;
44
+ update(menuId: number, data: UpdateDTO): Promise<any>;
45
+ delete(data: DeleteDTO): Promise<any>;
49
46
  updateOrder(data: OrderDTO): Promise<void>;
50
47
  }
51
48
  //# sourceMappingURL=menu.controller.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu.controller.d.ts","sourceRoot":"","sources":["../../src/menu/menu.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,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,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;I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AgB,KAAA,EAAY,MAAM,KAAA;;;;;;;;;IAKrD,SAAS,CACkB,MAAM,EAAE,MAAM,EAC/B,gBAAgB,KAAA,EACpB,MAAM,KAAA;;;;;;;;;IAMZ,WAAW,CACgB,MAAM,EAAE,MAAM,EAC/B,gBAAgB,KAAA,EACpB,MAAM,KAAA;;;;;;;;;IAMZ,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,CAAS,IAAI,EAAE,SAAS;IAK9B,MAAM,CACqB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;IAK9B,WAAW,CAAS,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAGzD"}
@@ -9,47 +9,44 @@ export declare class MenuService {
9
9
  private readonly prismaService;
10
10
  private readonly paginationService;
11
11
  constructor(prismaService: PrismaService, paginationService: PaginationService);
12
- updateScreens(menuId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
13
- updateRoles(menuId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
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>>;
12
+ updateScreens(menuId: number, data: UpdateIdsDTO): Promise<any>;
13
+ updateRoles(menuId: number, data: UpdateIdsDTO): Promise<any>;
14
+ listScreens(locale: string, menuId: number, paginationParams: PaginationDTO): Promise<{
15
+ total: any;
16
+ lastPage: number;
17
+ page: number;
18
+ pageSize: number;
19
+ prev: number;
20
+ next: number;
21
+ data: any;
22
+ }>;
23
+ listRoles(locale: string, menuId: number, paginationParams: PaginationDTO): Promise<{
24
+ total: any;
25
+ lastPage: number;
26
+ page: number;
27
+ pageSize: number;
28
+ prev: number;
29
+ next: number;
30
+ data: any;
31
+ }>;
16
32
  getMenus(locale: string, userId: number, menuId?: number): Promise<any[]>;
17
33
  getSystemMenu(locale: string, userId: number): Promise<any[]>;
18
- list(locale: string, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
19
- get(menuId: number): Promise<{
20
- id: number;
21
- created_at: Date;
22
- updated_at: Date;
23
- slug: string;
24
- icon: string | null;
25
- menu_id: number | null;
26
- url: string | null;
27
- order: number;
28
- }>;
29
- create({ slug, url, icon, order, menuId }: CreateDTO): Promise<{
30
- id: number;
31
- created_at: Date;
32
- updated_at: Date;
33
- slug: string;
34
- icon: string | null;
35
- menu_id: number | null;
36
- url: string | null;
37
- order: number;
34
+ list(locale: string, paginationParams: PaginationDTO): Promise<{
35
+ total: any;
36
+ lastPage: number;
37
+ page: number;
38
+ pageSize: number;
39
+ prev: number;
40
+ next: number;
41
+ data: any;
38
42
  }>;
43
+ get(menuId: number): Promise<any>;
44
+ create({ slug, url, icon, order, menuId }: CreateDTO): Promise<any>;
39
45
  update({ id, data }: {
40
46
  id: number;
41
47
  data: UpdateDTO;
42
- }): Promise<{
43
- id: number;
44
- created_at: Date;
45
- updated_at: Date;
46
- slug: string;
47
- icon: string | null;
48
- menu_id: number | null;
49
- url: string | null;
50
- order: number;
51
- }>;
52
- delete({ ids }: DeleteDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
48
+ }): Promise<any>;
49
+ delete({ ids }: DeleteDTO): Promise<any>;
53
50
  updateOrder({ ids }: OrderDTO): Promise<void>;
54
51
  }
55
52
  //# sourceMappingURL=menu.service.d.ts.map
@@ -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,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AE,MAAM;IAI5C,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;;;;;;;;;IA+BpD,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"}
@@ -6,18 +6,58 @@ 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>>;
14
- updateUsers(roleId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
15
- updateMenus(roleId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
16
- updateRoutes(roleId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
17
- updateScreens(roleId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
9
+ list(paginationParams: any, locale: any): Promise<{
10
+ total: any;
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: any;
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: any;
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: any;
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: any;
47
+ lastPage: number;
48
+ page: number;
49
+ pageSize: number;
50
+ prev: number;
51
+ next: number;
52
+ data: any;
53
+ }>;
54
+ updateUsers(roleId: number, data: UpdateIdsDTO): Promise<any>;
55
+ updateMenus(roleId: number, data: UpdateIdsDTO): Promise<any>;
56
+ updateRoutes(roleId: number, data: UpdateIdsDTO): Promise<any>;
57
+ updateScreens(roleId: number, data: UpdateIdsDTO): Promise<any>;
18
58
  show(roleId: number, locale: any): Promise<any>;
19
59
  create(data: CreateDTO): Promise<any>;
20
60
  update(roleId: number, data: UpdateDTO): Promise<any>;
21
- delete(data: DeleteDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
61
+ delete(data: DeleteDTO): Promise<any>;
22
62
  }
23
63
  //# sourceMappingURL=role.controller.d.ts.map
@@ -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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AAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAEa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,WAAW;IAIrC,IAAI,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;;;;;;;;;IAKrD,SAAS,CACC,gBAAgB,KAAA,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"}
@@ -10,21 +10,61 @@ export declare class RoleService {
10
10
  private readonly paginationService;
11
11
  private readonly localeService;
12
12
  constructor(prismaService: PrismaService, paginationService: PaginationService, localeService: LocaleService);
13
- updateUsers(roleId: number, { ids }: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
14
- updateScreens(roleId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
15
- updateRoutes(roleId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
16
- updateMenus(roleId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
17
- listUsers(roleId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
18
- listMenus(locale: string, roleId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
19
- listRoutes(roleId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
20
- listScreens(locale: string, roleId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
21
- list(locale: string, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
13
+ updateUsers(roleId: number, { ids }: UpdateIdsDTO): Promise<any>;
14
+ updateScreens(roleId: number, data: UpdateIdsDTO): Promise<any>;
15
+ updateRoutes(roleId: number, data: UpdateIdsDTO): Promise<any>;
16
+ updateMenus(roleId: number, data: UpdateIdsDTO): Promise<any>;
17
+ listUsers(roleId: number, paginationParams: PaginationDTO): Promise<{
18
+ total: any;
19
+ lastPage: number;
20
+ page: number;
21
+ pageSize: number;
22
+ prev: number;
23
+ next: number;
24
+ data: any;
25
+ }>;
26
+ listMenus(locale: string, roleId: number, paginationParams: PaginationDTO): Promise<{
27
+ total: any;
28
+ lastPage: number;
29
+ page: number;
30
+ pageSize: number;
31
+ prev: number;
32
+ next: number;
33
+ data: any;
34
+ }>;
35
+ listRoutes(roleId: number, paginationParams: PaginationDTO): Promise<{
36
+ total: any;
37
+ lastPage: number;
38
+ page: number;
39
+ pageSize: number;
40
+ prev: number;
41
+ next: number;
42
+ data: any;
43
+ }>;
44
+ listScreens(locale: string, roleId: number, paginationParams: PaginationDTO): Promise<{
45
+ total: any;
46
+ lastPage: number;
47
+ page: number;
48
+ pageSize: number;
49
+ prev: number;
50
+ next: number;
51
+ data: any;
52
+ }>;
53
+ list(locale: string, paginationParams: PaginationDTO): Promise<{
54
+ total: any;
55
+ lastPage: number;
56
+ page: number;
57
+ pageSize: number;
58
+ prev: number;
59
+ next: number;
60
+ data: any;
61
+ }>;
22
62
  get(locale: string, roleId: number): Promise<any>;
23
63
  create({ slug }: CreateDTO): Promise<any>;
24
64
  update({ id, data: { slug } }: {
25
65
  id: number;
26
66
  data: UpdateDTO;
27
67
  }): Promise<any>;
28
- delete({ ids }: DeleteDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
68
+ delete({ ids }: DeleteDTO): Promise<any>;
29
69
  }
30
70
  //# sourceMappingURL=role.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"role.service.d.ts","sourceRoot":"","sources":["../../src/role/role.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;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,WAAW;IAGpB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAElC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAJb,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB,EAEpC,aAAa,EAAE,aAAa;IAGzC,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,YAAY;IAgBjD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;IAgBhD,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;IAg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Service;
9
9
  constructor(routeService: RouteService);
10
- list(paginationParams: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
11
- get(routeId: number): Promise<{
12
- method: import(".prisma/client").$Enums.route_method_enum;
13
- id: number;
14
- description: string | null;
15
- created_at: Date;
16
- updated_at: Date;
17
- url: string;
10
+ list(paginationParams: any): Promise<{
11
+ total: any;
12
+ lastPage: number;
13
+ page: number;
14
+ pageSize: number;
15
+ prev: number;
16
+ next: number;
17
+ data: any;
18
18
  }>;
19
- create({ url, method }: CreateDTO): Promise<{
20
- method: import(".prisma/client").$Enums.route_method_enum;
21
- id: number;
22
- description: string | null;
23
- created_at: Date;
24
- updated_at: Date;
25
- url: string;
19
+ get(routeId: number): Promise<any>;
20
+ create({ url, method }: CreateDTO): Promise<any>;
21
+ update(routeId: number, data: UpdateDTO): Promise<any>;
22
+ delete(data: DeleteDTO): Promise<any>;
23
+ listRoles(routeId: number, paginationParams: PaginationDTO, locale: any): Promise<{
24
+ total: any;
25
+ lastPage: number;
26
+ page: number;
27
+ pageSize: number;
28
+ prev: number;
29
+ next: number;
30
+ data: any;
26
31
  }>;
27
- update(routeId: number, data: UpdateDTO): Promise<{
28
- method: import(".prisma/client").$Enums.route_method_enum;
29
- id: number;
30
- description: string | null;
31
- created_at: Date;
32
- updated_at: Date;
33
- url: string;
32
+ updateRoles(routeId: number, data: UpdateIdsDTO): Promise<any>;
33
+ listScreens(routeId: number, paginationParams: PaginationDTO, locale: any): Promise<{
34
+ total: any;
35
+ lastPage: number;
36
+ page: number;
37
+ pageSize: number;
38
+ prev: number;
39
+ next: number;
40
+ data: any;
34
41
  }>;
35
- delete(data: DeleteDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
36
- listRoles(routeId: number, paginationParams: PaginationDTO, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
37
- updateRoles(routeId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
38
- listScreens(routeId: number, paginationParams: PaginationDTO, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
39
- updateScreens(routeId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
42
+ updateScreens(routeId: number, data: UpdateIdsDTO): Promise<any>;
40
43
  }
41
44
  //# 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":"AAAA,OAAO,EAAc,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAa/D,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,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBAEa,eAAe;IAGxB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,YAAY;IAIvC,IAAI,CAAe,gBAAgB,KAAA;IAKnC,GAAG,CAAiC,OAAO,EAAE,MAAM;;;;;;;;IAKnD,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"}
1
+ {"version":3,"file":"route.controller.d.ts","sourceRoot":"","sources":["../../src/route/route.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAa/D,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,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBAEa,eAAe;IAGxB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,YAAY;IAIvC,IAAI,CAAe,gBAAgB,KAAA;;;;;;;;;IAKnC,GAAG,CAAiC,OAAO,EAAE,MAAM;IAKnD,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"}
@@ -8,38 +8,41 @@ export declare class RouteService {
8
8
  private readonly prismaService;
9
9
  private readonly paginationService;
10
10
  constructor(prismaService: PrismaService, paginationService: PaginationService);
11
- list(paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
12
- get(routeId: number): Promise<{
13
- method: import(".prisma/client").$Enums.route_method_enum;
14
- id: number;
15
- description: string | null;
16
- created_at: Date;
17
- updated_at: Date;
18
- url: string;
19
- }>;
20
- create({ url, method }: CreateDTO): Promise<{
21
- method: import(".prisma/client").$Enums.route_method_enum;
22
- id: number;
23
- description: string | null;
24
- created_at: Date;
25
- updated_at: Date;
26
- url: string;
11
+ list(paginationParams: PaginationDTO): Promise<{
12
+ total: any;
13
+ lastPage: number;
14
+ page: number;
15
+ pageSize: number;
16
+ prev: number;
17
+ next: number;
18
+ data: any;
27
19
  }>;
20
+ get(routeId: number): Promise<any>;
21
+ create({ url, method }: CreateDTO): Promise<any>;
28
22
  update({ id, data }: {
29
23
  id: number;
30
24
  data: UpdateDTO;
31
- }): Promise<{
32
- method: import(".prisma/client").$Enums.route_method_enum;
33
- id: number;
34
- description: string | null;
35
- created_at: Date;
36
- updated_at: Date;
37
- url: string;
25
+ }): Promise<any>;
26
+ delete({ ids }: DeleteDTO): Promise<any>;
27
+ listRoles(locale: string, routeId: number, paginationParams: PaginationDTO): Promise<{
28
+ total: any;
29
+ lastPage: number;
30
+ page: number;
31
+ pageSize: number;
32
+ prev: number;
33
+ next: number;
34
+ data: any;
35
+ }>;
36
+ updateRoles(routeId: number, data: UpdateIdsDTO): Promise<any>;
37
+ listScreens(locale: string, routeId: number, paginationParams: PaginationDTO): Promise<{
38
+ total: any;
39
+ lastPage: number;
40
+ page: number;
41
+ pageSize: number;
42
+ prev: number;
43
+ next: number;
44
+ data: any;
38
45
  }>;
39
- delete({ ids }: DeleteDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
40
- listRoles(locale: string, routeId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
41
- updateRoles(routeId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
42
- listScreens(locale: string, routeId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
43
- updateScreens(routeId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
46
+ updateScreens(routeId: number, data: UpdateIdsDTO): Promise<any>;
44
47
  }
45
48
  //# 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,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,YAAY;IAGrB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,IAAI,CAAC,gBAAgB,EAAE,aAAa;IAmBpC,GAAG,CAAC,OAAO,EAAE,MAAM;;;;;;;;IAInB,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,gBAA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,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;CAexD"}
@@ -6,32 +6,38 @@ import { ScreenService } from './screen.service';
6
6
  export declare class ScreenController {
7
7
  private readonly screenService;
8
8
  constructor(screenService: ScreenService);
9
- list(paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
10
- listRoles(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
- 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;
9
+ list(paginationParams: any, locale: any): Promise<{
10
+ total: any;
11
+ lastPage: number;
12
+ page: number;
13
+ pageSize: number;
14
+ prev: number;
15
+ next: number;
16
+ data: any;
20
17
  }>;
21
- create(data: CreateDTO): Promise<{
22
- id: number;
23
- created_at: Date;
24
- updated_at: Date;
25
- slug: string;
26
- icon: string | null;
18
+ listRoles(screenId: number, paginationParams: any, locale: any): Promise<{
19
+ total: any;
20
+ lastPage: number;
21
+ page: number;
22
+ pageSize: number;
23
+ prev: number;
24
+ next: number;
25
+ data: any;
27
26
  }>;
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;
27
+ listRoutes(screenId: number, paginationParams: any): Promise<{
28
+ total: any;
29
+ lastPage: number;
30
+ page: number;
31
+ pageSize: number;
32
+ prev: number;
33
+ next: number;
34
+ data: any;
34
35
  }>;
35
- delete(data: DeleteDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
36
+ updateRoles(screenId: number, data: UpdateIdsDTO): Promise<any>;
37
+ updateRoutes(screenId: number, data: UpdateIdsDTO): Promise<any>;
38
+ show(screenId: number): Promise<any>;
39
+ create(data: CreateDTO): Promise<any>;
40
+ update(screenId: number, data: UpdateDTO): Promise<any>;
41
+ delete(data: DeleteDTO): Promise<any>;
36
42
  }
37
43
  //# 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,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,qBAEa,gBAAgB;IAGzB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAIzC,IAAI,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;IAKrD,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"}
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,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,qBAEa,gBAAgB;IAGzB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAIzC,IAAI,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;;;;;;;;;IAKrD,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"}
@@ -8,35 +8,41 @@ 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<import(".prisma/client").Prisma.BatchPayload>;
12
- updateRoutes(screenId: number, { ids }: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
13
- listRoutes(screenId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
14
- listRoles(locale: string, screenId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
15
- list(locale: string, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
16
- get(screenId: number): Promise<{
17
- id: number;
18
- created_at: Date;
19
- updated_at: Date;
20
- slug: string;
21
- icon: string | null;
11
+ updateRoles(screenId: number, data: UpdateIdsDTO): Promise<any>;
12
+ updateRoutes(screenId: number, { ids }: UpdateIdsDTO): Promise<any>;
13
+ listRoutes(screenId: number, paginationParams: PaginationDTO): Promise<{
14
+ total: any;
15
+ lastPage: number;
16
+ page: number;
17
+ pageSize: number;
18
+ prev: number;
19
+ next: number;
20
+ data: any;
22
21
  }>;
23
- create({ slug, icon }: CreateDTO): Promise<{
24
- id: number;
25
- created_at: Date;
26
- updated_at: Date;
27
- slug: string;
28
- icon: string | null;
22
+ listRoles(locale: string, screenId: number, paginationParams: PaginationDTO): Promise<{
23
+ total: any;
24
+ lastPage: number;
25
+ page: number;
26
+ pageSize: number;
27
+ prev: number;
28
+ next: number;
29
+ data: any;
30
+ }>;
31
+ list(locale: string, paginationParams: PaginationDTO): Promise<{
32
+ total: any;
33
+ lastPage: number;
34
+ page: number;
35
+ pageSize: number;
36
+ prev: number;
37
+ next: number;
38
+ data: any;
29
39
  }>;
40
+ get(screenId: number): Promise<any>;
41
+ create({ slug, icon }: CreateDTO): Promise<any>;
30
42
  update({ id, data }: {
31
43
  id: number;
32
44
  data: UpdateDTO;
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>;
45
+ }): Promise<any>;
46
+ delete({ ids }: DeleteDTO): Promise<any>;
41
47
  }
42
48
  //# 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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AAM,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,uBAAuB,CAAC;AACrD,OAAO,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"}
@@ -6,39 +6,28 @@ 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>>;
11
- updateRoles(userId: number, data: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
12
- get(userId: number): Promise<{
13
- code: string | null;
14
- name: string;
15
- id: number;
16
- created_at: Date;
17
- updated_at: Date;
18
- multifactor_id: number | null;
19
- email: string;
20
- password: string;
9
+ list(paginationParams: any): Promise<{
10
+ total: any;
11
+ lastPage: number;
12
+ page: number;
13
+ pageSize: number;
14
+ prev: number;
15
+ next: number;
16
+ data: any;
21
17
  }>;
22
- create(data: CreateDTO): Promise<{
23
- code: string | null;
24
- name: string;
25
- id: number;
26
- created_at: Date;
27
- updated_at: Date;
28
- multifactor_id: number | null;
29
- email: string;
30
- password: string;
18
+ listRoles(userId: number, paginationParams: any): Promise<{
19
+ total: any;
20
+ lastPage: number;
21
+ page: number;
22
+ pageSize: number;
23
+ prev: number;
24
+ next: number;
25
+ data: any;
31
26
  }>;
32
- update(userId: number, data: UpdateDTO): Promise<{
33
- code: string | null;
34
- name: string;
35
- id: number;
36
- created_at: Date;
37
- updated_at: Date;
38
- multifactor_id: number | null;
39
- email: string;
40
- password: string;
41
- }>;
42
- delete(data: DeleteDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
27
+ updateRoles(userId: number, data: UpdateIdsDTO): Promise<any>;
28
+ get(userId: number): Promise<any>;
29
+ create(data: CreateDTO): Promise<any>;
30
+ update(userId: number, data: UpdateDTO): Promise<any>;
31
+ delete(data: DeleteDTO): Promise<any>;
43
32
  }
44
33
  //# sourceMappingURL=user.controller.d.ts.map
@@ -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,kB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S;IAKxB,MAAM,CACqB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
@@ -8,43 +8,32 @@ export declare class UserService {
8
8
  private readonly prismaService;
9
9
  private readonly paginationService;
10
10
  constructor(prismaService: PrismaService, paginationService: PaginationService);
11
- listRoles(userId: number, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
12
- updateRoles(userId: number, { ids }: UpdateIdsDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
13
- list(paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
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;
11
+ listRoles(userId: number, paginationParams: PaginationDTO): Promise<{
12
+ total: any;
13
+ lastPage: number;
14
+ page: number;
15
+ pageSize: number;
16
+ prev: number;
17
+ next: number;
18
+ data: any;
23
19
  }>;
24
- hashPassword(password: string): Promise<string>;
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;
20
+ updateRoles(userId: number, { ids }: UpdateIdsDTO): Promise<any>;
21
+ list(paginationParams: PaginationDTO): Promise<{
22
+ total: any;
23
+ lastPage: number;
24
+ page: number;
25
+ pageSize: number;
26
+ prev: number;
27
+ next: number;
28
+ data: any;
34
29
  }>;
30
+ get(userId: number): Promise<any>;
31
+ hashPassword(password: string): Promise<string>;
32
+ create({ email, name, password }: CreateDTO): Promise<any>;
35
33
  update({ id, data }: {
36
34
  id: number;
37
35
  data: UpdateDTO;
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>;
36
+ }): Promise<any>;
37
+ delete({ ids }: DeleteDTO): Promise<any>;
49
38
  }
50
39
  //# 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;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,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;;;;;;;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in",
3
- "version": "0.0.123",
4
- "private": false,
5
- "main": "dist/index.js",
6
- "scripts": {
7
- "clean": "rimraf ./dist",
8
- "prebuild": "npm run clean",
9
- "build": "tsc --project tsconfig.production.json && npm version patch",
10
- "prod": "npm run build && npm publish --access public"
11
- },
12
- "file": [
13
- "dist/**/*",
14
- "src/entities/**/*.ts",
15
- "src/migrations/**/*.ts",
16
- "src/**/*.ejs",
17
- "hedhog.yaml"
18
- ],
19
- "keywords": [],
20
- "author": "",
21
- "license": "MIT",
22
- "description": "",
23
- "devDependencies": {
24
- "@hedhog/locale": "^0.0.22",
25
- "@hedhog/mail": "^0.0.14",
26
- "@hedhog/pagination": "^0.0.17",
27
- "@hedhog/prisma": "^0.0.11",
28
- "@hedhog/setting": "^0.0.14",
29
- "@hedhog/utils": "^0.0.27",
30
- "@nestjs/mapped-types": "^2.0.5",
31
- "ts-node": "^10.9.1",
32
- "typescript": "^5.1.3"
33
- },
34
- "peerDependencies": {
35
- "@hedhog/locale": "latest",
36
- "@hedhog/mail": "latest",
37
- "@hedhog/pagination": "latest",
38
- "@hedhog/prisma": "latest",
39
- "@hedhog/setting": "latest",
40
- "@hedhog/utils": "latest",
41
- "@nestjs/jwt": "latest"
42
- }
43
- }
1
+ {
2
+ "name": "@hedhog/admin",
3
+ "version": "0.3.1",
4
+ "private": false,
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "clean": "rimraf ./dist",
8
+ "prebuild": "npm run clean",
9
+ "build": "tsc --project tsconfig.production.json && npm version patch",
10
+ "prod": "npm run build && npm publish --access public"
11
+ },
12
+ "file": [
13
+ "dist/**/*",
14
+ "src/entities/**/*.ts",
15
+ "src/migrations/**/*.ts",
16
+ "src/**/*.ejs",
17
+ "hedhog.yaml"
18
+ ],
19
+ "keywords": [],
20
+ "author": "",
21
+ "license": "MIT",
22
+ "description": "",
23
+ "devDependencies": {
24
+ "@hedhog/locale": "^0.0.24",
25
+ "@hedhog/mail": "^0.0.14",
26
+ "@hedhog/pagination": "^0.0.18",
27
+ "@hedhog/prisma": "^0.0.12",
28
+ "@hedhog/setting": "^0.0.15",
29
+ "@hedhog/utils": "^0.0.27",
30
+ "@nestjs/mapped-types": "^2.0.5",
31
+ "ts-node": "^10.9.1",
32
+ "typescript": "^5.1.3"
33
+ },
34
+ "peerDependencies": {
35
+ "@hedhog/locale": "latest",
36
+ "@hedhog/mail": "latest",
37
+ "@hedhog/pagination": "latest",
38
+ "@hedhog/prisma": "latest",
39
+ "@hedhog/setting": "latest",
40
+ "@hedhog/utils": "latest",
41
+ "@nestjs/jwt": "latest"
42
+ }
43
+ }