@hedhog/admin 0.0.124 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/menu/menu.controller.d.ts +6 -6
- package/dist/menu/menu.service.d.ts +6 -6
- package/dist/role/role.controller.d.ts +10 -10
- package/dist/role/role.service.d.ts +10 -10
- package/dist/route/route.controller.d.ts +6 -6
- package/dist/route/route.service.d.ts +6 -6
- package/dist/screen/screen.controller.d.ts +6 -6
- package/dist/screen/screen.service.d.ts +6 -6
- package/dist/user/user.controller.d.ts +4 -4
- package/dist/user/user.service.d.ts +4 -4
- package/package.json +43 -43
@@ -11,31 +11,31 @@ export declare class MenuController {
|
|
11
11
|
id: any;
|
12
12
|
}, locale: any): Promise<any[]>;
|
13
13
|
list(paginationParams: any, locale: any): Promise<{
|
14
|
-
total:
|
14
|
+
total: any;
|
15
15
|
lastPage: number;
|
16
16
|
page: number;
|
17
17
|
pageSize: number;
|
18
18
|
prev: number;
|
19
19
|
next: number;
|
20
|
-
data: any
|
20
|
+
data: any;
|
21
21
|
}>;
|
22
22
|
listRoles(menuId: number, paginationParams: any, locale: any): Promise<{
|
23
|
-
total:
|
23
|
+
total: any;
|
24
24
|
lastPage: number;
|
25
25
|
page: number;
|
26
26
|
pageSize: number;
|
27
27
|
prev: number;
|
28
28
|
next: number;
|
29
|
-
data: any
|
29
|
+
data: any;
|
30
30
|
}>;
|
31
31
|
listScreens(menuId: number, paginationParams: any, locale: any): Promise<{
|
32
|
-
total:
|
32
|
+
total: any;
|
33
33
|
lastPage: number;
|
34
34
|
page: number;
|
35
35
|
pageSize: number;
|
36
36
|
prev: number;
|
37
37
|
next: number;
|
38
|
-
data: any
|
38
|
+
data: any;
|
39
39
|
}>;
|
40
40
|
updateRoles(menuId: number, data: UpdateIdsDTO): Promise<any>;
|
41
41
|
updateScreens(menuId: number, data: UpdateIdsDTO): Promise<any>;
|
@@ -12,33 +12,33 @@ export declare class MenuService {
|
|
12
12
|
updateScreens(menuId: number, data: UpdateIdsDTO): Promise<any>;
|
13
13
|
updateRoles(menuId: number, data: UpdateIdsDTO): Promise<any>;
|
14
14
|
listScreens(locale: string, menuId: number, paginationParams: PaginationDTO): Promise<{
|
15
|
-
total:
|
15
|
+
total: any;
|
16
16
|
lastPage: number;
|
17
17
|
page: number;
|
18
18
|
pageSize: number;
|
19
19
|
prev: number;
|
20
20
|
next: number;
|
21
|
-
data: any
|
21
|
+
data: any;
|
22
22
|
}>;
|
23
23
|
listRoles(locale: string, menuId: number, paginationParams: PaginationDTO): Promise<{
|
24
|
-
total:
|
24
|
+
total: any;
|
25
25
|
lastPage: number;
|
26
26
|
page: number;
|
27
27
|
pageSize: number;
|
28
28
|
prev: number;
|
29
29
|
next: number;
|
30
|
-
data: any
|
30
|
+
data: any;
|
31
31
|
}>;
|
32
32
|
getMenus(locale: string, userId: number, menuId?: number): Promise<any[]>;
|
33
33
|
getSystemMenu(locale: string, userId: number): Promise<any[]>;
|
34
34
|
list(locale: string, paginationParams: PaginationDTO): Promise<{
|
35
|
-
total:
|
35
|
+
total: any;
|
36
36
|
lastPage: number;
|
37
37
|
page: number;
|
38
38
|
pageSize: number;
|
39
39
|
prev: number;
|
40
40
|
next: number;
|
41
|
-
data: any
|
41
|
+
data: any;
|
42
42
|
}>;
|
43
43
|
get(menuId: number): Promise<any>;
|
44
44
|
create({ slug, url, icon, order, menuId }: CreateDTO): Promise<any>;
|
@@ -7,49 +7,49 @@ export declare class RoleController {
|
|
7
7
|
private readonly roleService;
|
8
8
|
constructor(roleService: RoleService);
|
9
9
|
list(paginationParams: any, locale: any): Promise<{
|
10
|
-
total:
|
10
|
+
total: any;
|
11
11
|
lastPage: number;
|
12
12
|
page: number;
|
13
13
|
pageSize: number;
|
14
14
|
prev: number;
|
15
15
|
next: number;
|
16
|
-
data: any
|
16
|
+
data: any;
|
17
17
|
}>;
|
18
18
|
listUsers(paginationParams: any, roleId: number): Promise<{
|
19
|
-
total:
|
19
|
+
total: any;
|
20
20
|
lastPage: number;
|
21
21
|
page: number;
|
22
22
|
pageSize: number;
|
23
23
|
prev: number;
|
24
24
|
next: number;
|
25
|
-
data: any
|
25
|
+
data: any;
|
26
26
|
}>;
|
27
27
|
listMenus(paginationParams: any, roleId: number, locale: any): Promise<{
|
28
|
-
total:
|
28
|
+
total: any;
|
29
29
|
lastPage: number;
|
30
30
|
page: number;
|
31
31
|
pageSize: number;
|
32
32
|
prev: number;
|
33
33
|
next: number;
|
34
|
-
data: any
|
34
|
+
data: any;
|
35
35
|
}>;
|
36
36
|
listRoutes(paginationParams: any, roleId: number): Promise<{
|
37
|
-
total:
|
37
|
+
total: any;
|
38
38
|
lastPage: number;
|
39
39
|
page: number;
|
40
40
|
pageSize: number;
|
41
41
|
prev: number;
|
42
42
|
next: number;
|
43
|
-
data: any
|
43
|
+
data: any;
|
44
44
|
}>;
|
45
45
|
listScreens(paginationParams: any, roleId: number, locale: any): Promise<{
|
46
|
-
total:
|
46
|
+
total: any;
|
47
47
|
lastPage: number;
|
48
48
|
page: number;
|
49
49
|
pageSize: number;
|
50
50
|
prev: number;
|
51
51
|
next: number;
|
52
|
-
data: any
|
52
|
+
data: any;
|
53
53
|
}>;
|
54
54
|
updateUsers(roleId: number, data: UpdateIdsDTO): Promise<any>;
|
55
55
|
updateMenus(roleId: number, data: UpdateIdsDTO): Promise<any>;
|
@@ -15,49 +15,49 @@ export declare class RoleService {
|
|
15
15
|
updateRoutes(roleId: number, data: UpdateIdsDTO): Promise<any>;
|
16
16
|
updateMenus(roleId: number, data: UpdateIdsDTO): Promise<any>;
|
17
17
|
listUsers(roleId: number, paginationParams: PaginationDTO): Promise<{
|
18
|
-
total:
|
18
|
+
total: any;
|
19
19
|
lastPage: number;
|
20
20
|
page: number;
|
21
21
|
pageSize: number;
|
22
22
|
prev: number;
|
23
23
|
next: number;
|
24
|
-
data: any
|
24
|
+
data: any;
|
25
25
|
}>;
|
26
26
|
listMenus(locale: string, roleId: number, paginationParams: PaginationDTO): Promise<{
|
27
|
-
total:
|
27
|
+
total: any;
|
28
28
|
lastPage: number;
|
29
29
|
page: number;
|
30
30
|
pageSize: number;
|
31
31
|
prev: number;
|
32
32
|
next: number;
|
33
|
-
data: any
|
33
|
+
data: any;
|
34
34
|
}>;
|
35
35
|
listRoutes(roleId: number, paginationParams: PaginationDTO): Promise<{
|
36
|
-
total:
|
36
|
+
total: any;
|
37
37
|
lastPage: number;
|
38
38
|
page: number;
|
39
39
|
pageSize: number;
|
40
40
|
prev: number;
|
41
41
|
next: number;
|
42
|
-
data: any
|
42
|
+
data: any;
|
43
43
|
}>;
|
44
44
|
listScreens(locale: string, roleId: number, paginationParams: PaginationDTO): Promise<{
|
45
|
-
total:
|
45
|
+
total: any;
|
46
46
|
lastPage: number;
|
47
47
|
page: number;
|
48
48
|
pageSize: number;
|
49
49
|
prev: number;
|
50
50
|
next: number;
|
51
|
-
data: any
|
51
|
+
data: any;
|
52
52
|
}>;
|
53
53
|
list(locale: string, paginationParams: PaginationDTO): Promise<{
|
54
|
-
total:
|
54
|
+
total: any;
|
55
55
|
lastPage: number;
|
56
56
|
page: number;
|
57
57
|
pageSize: number;
|
58
58
|
prev: number;
|
59
59
|
next: number;
|
60
|
-
data: any
|
60
|
+
data: any;
|
61
61
|
}>;
|
62
62
|
get(locale: string, roleId: number): Promise<any>;
|
63
63
|
create({ slug }: CreateDTO): Promise<any>;
|
@@ -8,36 +8,36 @@ export declare class RouteController {
|
|
8
8
|
private readonly routeService;
|
9
9
|
constructor(routeService: RouteService);
|
10
10
|
list(paginationParams: any): Promise<{
|
11
|
-
total:
|
11
|
+
total: any;
|
12
12
|
lastPage: number;
|
13
13
|
page: number;
|
14
14
|
pageSize: number;
|
15
15
|
prev: number;
|
16
16
|
next: number;
|
17
|
-
data: any
|
17
|
+
data: any;
|
18
18
|
}>;
|
19
19
|
get(routeId: number): Promise<any>;
|
20
20
|
create({ url, method }: CreateDTO): Promise<any>;
|
21
21
|
update(routeId: number, data: UpdateDTO): Promise<any>;
|
22
22
|
delete(data: DeleteDTO): Promise<any>;
|
23
23
|
listRoles(routeId: number, paginationParams: PaginationDTO, locale: any): Promise<{
|
24
|
-
total:
|
24
|
+
total: any;
|
25
25
|
lastPage: number;
|
26
26
|
page: number;
|
27
27
|
pageSize: number;
|
28
28
|
prev: number;
|
29
29
|
next: number;
|
30
|
-
data: any
|
30
|
+
data: any;
|
31
31
|
}>;
|
32
32
|
updateRoles(routeId: number, data: UpdateIdsDTO): Promise<any>;
|
33
33
|
listScreens(routeId: number, paginationParams: PaginationDTO, locale: any): Promise<{
|
34
|
-
total:
|
34
|
+
total: any;
|
35
35
|
lastPage: number;
|
36
36
|
page: number;
|
37
37
|
pageSize: number;
|
38
38
|
prev: number;
|
39
39
|
next: number;
|
40
|
-
data: any
|
40
|
+
data: any;
|
41
41
|
}>;
|
42
42
|
updateScreens(routeId: number, data: UpdateIdsDTO): Promise<any>;
|
43
43
|
}
|
@@ -9,13 +9,13 @@ export declare class RouteService {
|
|
9
9
|
private readonly paginationService;
|
10
10
|
constructor(prismaService: PrismaService, paginationService: PaginationService);
|
11
11
|
list(paginationParams: PaginationDTO): Promise<{
|
12
|
-
total:
|
12
|
+
total: any;
|
13
13
|
lastPage: number;
|
14
14
|
page: number;
|
15
15
|
pageSize: number;
|
16
16
|
prev: number;
|
17
17
|
next: number;
|
18
|
-
data: any
|
18
|
+
data: any;
|
19
19
|
}>;
|
20
20
|
get(routeId: number): Promise<any>;
|
21
21
|
create({ url, method }: CreateDTO): Promise<any>;
|
@@ -25,23 +25,23 @@ export declare class RouteService {
|
|
25
25
|
}): Promise<any>;
|
26
26
|
delete({ ids }: DeleteDTO): Promise<any>;
|
27
27
|
listRoles(locale: string, routeId: number, paginationParams: PaginationDTO): Promise<{
|
28
|
-
total:
|
28
|
+
total: any;
|
29
29
|
lastPage: number;
|
30
30
|
page: number;
|
31
31
|
pageSize: number;
|
32
32
|
prev: number;
|
33
33
|
next: number;
|
34
|
-
data: any
|
34
|
+
data: any;
|
35
35
|
}>;
|
36
36
|
updateRoles(routeId: number, data: UpdateIdsDTO): Promise<any>;
|
37
37
|
listScreens(locale: string, routeId: number, paginationParams: PaginationDTO): Promise<{
|
38
|
-
total:
|
38
|
+
total: any;
|
39
39
|
lastPage: number;
|
40
40
|
page: number;
|
41
41
|
pageSize: number;
|
42
42
|
prev: number;
|
43
43
|
next: number;
|
44
|
-
data: any
|
44
|
+
data: any;
|
45
45
|
}>;
|
46
46
|
updateScreens(routeId: number, data: UpdateIdsDTO): Promise<any>;
|
47
47
|
}
|
@@ -7,31 +7,31 @@ export declare class ScreenController {
|
|
7
7
|
private readonly screenService;
|
8
8
|
constructor(screenService: ScreenService);
|
9
9
|
list(paginationParams: any, locale: any): Promise<{
|
10
|
-
total:
|
10
|
+
total: any;
|
11
11
|
lastPage: number;
|
12
12
|
page: number;
|
13
13
|
pageSize: number;
|
14
14
|
prev: number;
|
15
15
|
next: number;
|
16
|
-
data: any
|
16
|
+
data: any;
|
17
17
|
}>;
|
18
18
|
listRoles(screenId: number, paginationParams: any, locale: any): Promise<{
|
19
|
-
total:
|
19
|
+
total: any;
|
20
20
|
lastPage: number;
|
21
21
|
page: number;
|
22
22
|
pageSize: number;
|
23
23
|
prev: number;
|
24
24
|
next: number;
|
25
|
-
data: any
|
25
|
+
data: any;
|
26
26
|
}>;
|
27
27
|
listRoutes(screenId: number, paginationParams: any): Promise<{
|
28
|
-
total:
|
28
|
+
total: any;
|
29
29
|
lastPage: number;
|
30
30
|
page: number;
|
31
31
|
pageSize: number;
|
32
32
|
prev: number;
|
33
33
|
next: number;
|
34
|
-
data: any
|
34
|
+
data: any;
|
35
35
|
}>;
|
36
36
|
updateRoles(screenId: number, data: UpdateIdsDTO): Promise<any>;
|
37
37
|
updateRoutes(screenId: number, data: UpdateIdsDTO): Promise<any>;
|
@@ -11,31 +11,31 @@ export declare class ScreenService {
|
|
11
11
|
updateRoles(screenId: number, data: UpdateIdsDTO): Promise<any>;
|
12
12
|
updateRoutes(screenId: number, { ids }: UpdateIdsDTO): Promise<any>;
|
13
13
|
listRoutes(screenId: number, paginationParams: PaginationDTO): Promise<{
|
14
|
-
total:
|
14
|
+
total: any;
|
15
15
|
lastPage: number;
|
16
16
|
page: number;
|
17
17
|
pageSize: number;
|
18
18
|
prev: number;
|
19
19
|
next: number;
|
20
|
-
data: any
|
20
|
+
data: any;
|
21
21
|
}>;
|
22
22
|
listRoles(locale: string, screenId: number, paginationParams: PaginationDTO): Promise<{
|
23
|
-
total:
|
23
|
+
total: any;
|
24
24
|
lastPage: number;
|
25
25
|
page: number;
|
26
26
|
pageSize: number;
|
27
27
|
prev: number;
|
28
28
|
next: number;
|
29
|
-
data: any
|
29
|
+
data: any;
|
30
30
|
}>;
|
31
31
|
list(locale: string, paginationParams: PaginationDTO): Promise<{
|
32
|
-
total:
|
32
|
+
total: any;
|
33
33
|
lastPage: number;
|
34
34
|
page: number;
|
35
35
|
pageSize: number;
|
36
36
|
prev: number;
|
37
37
|
next: number;
|
38
|
-
data: any
|
38
|
+
data: any;
|
39
39
|
}>;
|
40
40
|
get(screenId: number): Promise<any>;
|
41
41
|
create({ slug, icon }: CreateDTO): Promise<any>;
|
@@ -7,22 +7,22 @@ export declare class UserController {
|
|
7
7
|
private readonly userService;
|
8
8
|
constructor(userService: UserService);
|
9
9
|
list(paginationParams: any): Promise<{
|
10
|
-
total:
|
10
|
+
total: any;
|
11
11
|
lastPage: number;
|
12
12
|
page: number;
|
13
13
|
pageSize: number;
|
14
14
|
prev: number;
|
15
15
|
next: number;
|
16
|
-
data: any
|
16
|
+
data: any;
|
17
17
|
}>;
|
18
18
|
listRoles(userId: number, paginationParams: any): Promise<{
|
19
|
-
total:
|
19
|
+
total: any;
|
20
20
|
lastPage: number;
|
21
21
|
page: number;
|
22
22
|
pageSize: number;
|
23
23
|
prev: number;
|
24
24
|
next: number;
|
25
|
-
data: any
|
25
|
+
data: any;
|
26
26
|
}>;
|
27
27
|
updateRoles(userId: number, data: UpdateIdsDTO): Promise<any>;
|
28
28
|
get(userId: number): Promise<any>;
|
@@ -9,23 +9,23 @@ export declare class UserService {
|
|
9
9
|
private readonly paginationService;
|
10
10
|
constructor(prismaService: PrismaService, paginationService: PaginationService);
|
11
11
|
listRoles(userId: number, paginationParams: PaginationDTO): Promise<{
|
12
|
-
total:
|
12
|
+
total: any;
|
13
13
|
lastPage: number;
|
14
14
|
page: number;
|
15
15
|
pageSize: number;
|
16
16
|
prev: number;
|
17
17
|
next: number;
|
18
|
-
data: any
|
18
|
+
data: any;
|
19
19
|
}>;
|
20
20
|
updateRoles(userId: number, { ids }: UpdateIdsDTO): Promise<any>;
|
21
21
|
list(paginationParams: PaginationDTO): Promise<{
|
22
|
-
total:
|
22
|
+
total: any;
|
23
23
|
lastPage: number;
|
24
24
|
page: number;
|
25
25
|
pageSize: number;
|
26
26
|
prev: number;
|
27
27
|
next: number;
|
28
|
-
data: any
|
28
|
+
data: any;
|
29
29
|
}>;
|
30
30
|
get(userId: number): Promise<any>;
|
31
31
|
hashPassword(password: string): Promise<string>;
|
package/package.json
CHANGED
@@ -1,43 +1,43 @@
|
|
1
|
-
{
|
2
|
-
"name": "@hedhog/admin",
|
3
|
-
"version": "0.
|
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
|
-
}
|
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
|
+
}
|