@hed-hog/core 0.0.250 → 0.0.251
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/auth.controller.d.ts +1 -1
- package/dist/auth/auth.service.d.ts +1 -1
- package/dist/dashboard/dashboard-user/dashboard-user.controller.d.ts +3 -3
- package/dist/dashboard/dashboard-user/dashboard-user.service.d.ts +3 -3
- package/dist/menu/menu.controller.d.ts +3 -3
- package/dist/menu/menu.service.d.ts +3 -3
- package/dist/user/user.controller.d.ts +2 -2
- package/dist/user/user.service.d.ts +3 -3
- package/package.json +5 -5
|
@@ -23,9 +23,9 @@ export declare class AuthController {
|
|
|
23
23
|
provider: import("@prisma/client").$Enums.user_account_provider_enum;
|
|
24
24
|
created_at: Date;
|
|
25
25
|
updated_at: Date;
|
|
26
|
-
email: string | null;
|
|
27
26
|
user_id: number;
|
|
28
27
|
provider_user_id: string;
|
|
28
|
+
email: string | null;
|
|
29
29
|
scopes: string | null;
|
|
30
30
|
refresh_token: import("@prisma/client/runtime/library").Bytes | null;
|
|
31
31
|
token_expires_at: Date | null;
|
|
@@ -79,9 +79,9 @@ export declare class AuthService {
|
|
|
79
79
|
provider: import("@prisma/client").$Enums.user_account_provider_enum;
|
|
80
80
|
created_at: Date;
|
|
81
81
|
updated_at: Date;
|
|
82
|
-
email: string | null;
|
|
83
82
|
user_id: number;
|
|
84
83
|
provider_user_id: string;
|
|
84
|
+
email: string | null;
|
|
85
85
|
scopes: string | null;
|
|
86
86
|
refresh_token: import("@prisma/client/runtime/library").Bytes | null;
|
|
87
87
|
token_expires_at: Date | null;
|
|
@@ -18,24 +18,24 @@ export declare class DashboardUserController {
|
|
|
18
18
|
id: number;
|
|
19
19
|
created_at: Date;
|
|
20
20
|
updated_at: Date;
|
|
21
|
-
user_id: number;
|
|
22
21
|
dashboard_id: number;
|
|
22
|
+
user_id: number;
|
|
23
23
|
is_home: boolean;
|
|
24
24
|
}>;
|
|
25
25
|
create(data: CreateDTO): Promise<{
|
|
26
26
|
id: number;
|
|
27
27
|
created_at: Date;
|
|
28
28
|
updated_at: Date;
|
|
29
|
-
user_id: number;
|
|
30
29
|
dashboard_id: number;
|
|
30
|
+
user_id: number;
|
|
31
31
|
is_home: boolean;
|
|
32
32
|
}>;
|
|
33
33
|
update(id: number, data: UpdateDTO): Promise<{
|
|
34
34
|
id: number;
|
|
35
35
|
created_at: Date;
|
|
36
36
|
updated_at: Date;
|
|
37
|
-
user_id: number;
|
|
38
37
|
dashboard_id: number;
|
|
38
|
+
user_id: number;
|
|
39
39
|
is_home: boolean;
|
|
40
40
|
}>;
|
|
41
41
|
delete(data: DeleteDTO): Promise<{
|
|
@@ -20,16 +20,16 @@ export declare class DashboardUserService {
|
|
|
20
20
|
id: number;
|
|
21
21
|
created_at: Date;
|
|
22
22
|
updated_at: Date;
|
|
23
|
-
user_id: number;
|
|
24
23
|
dashboard_id: number;
|
|
24
|
+
user_id: number;
|
|
25
25
|
is_home: boolean;
|
|
26
26
|
}>;
|
|
27
27
|
create(data: CreateDTO): Promise<{
|
|
28
28
|
id: number;
|
|
29
29
|
created_at: Date;
|
|
30
30
|
updated_at: Date;
|
|
31
|
-
user_id: number;
|
|
32
31
|
dashboard_id: number;
|
|
32
|
+
user_id: number;
|
|
33
33
|
is_home: boolean;
|
|
34
34
|
}>;
|
|
35
35
|
update({ id, data }: {
|
|
@@ -39,8 +39,8 @@ export declare class DashboardUserService {
|
|
|
39
39
|
id: number;
|
|
40
40
|
created_at: Date;
|
|
41
41
|
updated_at: Date;
|
|
42
|
-
user_id: number;
|
|
43
42
|
dashboard_id: number;
|
|
43
|
+
user_id: number;
|
|
44
44
|
is_home: boolean;
|
|
45
45
|
}>;
|
|
46
46
|
delete({ ids }: DeleteDTO): Promise<{
|
|
@@ -54,9 +54,9 @@ export declare class MenuController {
|
|
|
54
54
|
created_at: Date;
|
|
55
55
|
updated_at: Date;
|
|
56
56
|
slug: string;
|
|
57
|
-
icon: string;
|
|
58
57
|
menu_id: number | null;
|
|
59
58
|
url: string | null;
|
|
59
|
+
icon: string;
|
|
60
60
|
}>;
|
|
61
61
|
create(locale: any, data: CreateDTO): Promise<{
|
|
62
62
|
id: number;
|
|
@@ -64,9 +64,9 @@ export declare class MenuController {
|
|
|
64
64
|
created_at: Date;
|
|
65
65
|
updated_at: Date;
|
|
66
66
|
slug: string;
|
|
67
|
-
icon: string;
|
|
68
67
|
menu_id: number | null;
|
|
69
68
|
url: string | null;
|
|
69
|
+
icon: string;
|
|
70
70
|
}>;
|
|
71
71
|
updateOrder(locale: any, data: OrderDTO): Promise<void>;
|
|
72
72
|
update(locale: any, menuId: number, data: UpdateDTO): Promise<{
|
|
@@ -75,9 +75,9 @@ export declare class MenuController {
|
|
|
75
75
|
created_at: Date;
|
|
76
76
|
updated_at: Date;
|
|
77
77
|
slug: string;
|
|
78
|
-
icon: string;
|
|
79
78
|
menu_id: number | null;
|
|
80
79
|
url: string | null;
|
|
80
|
+
icon: string;
|
|
81
81
|
}>;
|
|
82
82
|
delete(locale: any, data: DeleteDTO): Promise<{
|
|
83
83
|
count: number;
|
|
@@ -67,9 +67,9 @@ export declare class MenuService {
|
|
|
67
67
|
created_at: Date;
|
|
68
68
|
updated_at: Date;
|
|
69
69
|
slug: string;
|
|
70
|
-
icon: string;
|
|
71
70
|
menu_id: number | null;
|
|
72
71
|
url: string | null;
|
|
72
|
+
icon: string;
|
|
73
73
|
}>;
|
|
74
74
|
create(_locale: string, { slug, url, icon, order, menu_id, locale }: CreateDTO): Promise<{
|
|
75
75
|
id: number;
|
|
@@ -77,9 +77,9 @@ export declare class MenuService {
|
|
|
77
77
|
created_at: Date;
|
|
78
78
|
updated_at: Date;
|
|
79
79
|
slug: string;
|
|
80
|
-
icon: string;
|
|
81
80
|
menu_id: number | null;
|
|
82
81
|
url: string | null;
|
|
82
|
+
icon: string;
|
|
83
83
|
}>;
|
|
84
84
|
update(locale: string, { id, data }: {
|
|
85
85
|
id: number;
|
|
@@ -90,9 +90,9 @@ export declare class MenuService {
|
|
|
90
90
|
created_at: Date;
|
|
91
91
|
updated_at: Date;
|
|
92
92
|
slug: string;
|
|
93
|
-
icon: string;
|
|
94
93
|
menu_id: number | null;
|
|
95
94
|
url: string | null;
|
|
95
|
+
icon: string;
|
|
96
96
|
}>;
|
|
97
97
|
delete(locale: string, { ids }: DeleteDTO): Promise<{
|
|
98
98
|
count: number;
|
|
@@ -25,9 +25,9 @@ export declare class UserController {
|
|
|
25
25
|
provider: import("@prisma/client").$Enums.user_account_provider_enum;
|
|
26
26
|
created_at: Date;
|
|
27
27
|
updated_at: Date;
|
|
28
|
-
email: string | null;
|
|
29
28
|
user_id: number;
|
|
30
29
|
provider_user_id: string;
|
|
30
|
+
email: string | null;
|
|
31
31
|
scopes: string | null;
|
|
32
32
|
refresh_token: import("@prisma/client/runtime/library").Bytes | null;
|
|
33
33
|
token_expires_at: Date | null;
|
|
@@ -136,8 +136,8 @@ export declare class UserController {
|
|
|
136
136
|
id: number;
|
|
137
137
|
created_at: Date;
|
|
138
138
|
updated_at: Date;
|
|
139
|
-
user_id: number;
|
|
140
139
|
role_id: number;
|
|
140
|
+
user_id: number;
|
|
141
141
|
}>;
|
|
142
142
|
removeRoleFromUser(userId: number, roleId: number, locale: string): Promise<{
|
|
143
143
|
count: number;
|
|
@@ -46,9 +46,9 @@ export declare class UserService {
|
|
|
46
46
|
provider: import("@prisma/client").$Enums.user_account_provider_enum;
|
|
47
47
|
created_at: Date;
|
|
48
48
|
updated_at: Date;
|
|
49
|
-
email: string | null;
|
|
50
49
|
user_id: number;
|
|
51
50
|
provider_user_id: string;
|
|
51
|
+
email: string | null;
|
|
52
52
|
scopes: string | null;
|
|
53
53
|
refresh_token: import("@prisma/client/runtime/library").Bytes | null;
|
|
54
54
|
token_expires_at: Date | null;
|
|
@@ -142,9 +142,9 @@ export declare class UserService {
|
|
|
142
142
|
provider: import("@prisma/client").$Enums.user_account_provider_enum;
|
|
143
143
|
created_at: Date;
|
|
144
144
|
updated_at: Date;
|
|
145
|
-
email: string | null;
|
|
146
145
|
user_id: number;
|
|
147
146
|
provider_user_id: string;
|
|
147
|
+
email: string | null;
|
|
148
148
|
scopes: string | null;
|
|
149
149
|
refresh_token: import("@prisma/client/runtime/library").Bytes | null;
|
|
150
150
|
token_expires_at: Date | null;
|
|
@@ -254,8 +254,8 @@ export declare class UserService {
|
|
|
254
254
|
id: number;
|
|
255
255
|
created_at: Date;
|
|
256
256
|
updated_at: Date;
|
|
257
|
-
user_id: number;
|
|
258
257
|
role_id: number;
|
|
258
|
+
user_id: number;
|
|
259
259
|
}>;
|
|
260
260
|
removeRoleFromUser(locale: string, userId: number, roleId: number): Promise<{
|
|
261
261
|
count: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.251",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"sharp": "^0.34.2",
|
|
31
31
|
"speakeasy": "^2.0.0",
|
|
32
32
|
"uuid": "^11.1.0",
|
|
33
|
+
"@hed-hog/api": "0.0.3",
|
|
33
34
|
"@hed-hog/api-mail": "0.0.7",
|
|
34
|
-
"@hed-hog/api-prisma": "0.0.4",
|
|
35
35
|
"@hed-hog/api-pagination": "0.0.5",
|
|
36
|
-
"@hed-hog/api": "0.0.
|
|
37
|
-
"@hed-hog/api-
|
|
38
|
-
"@hed-hog/api-
|
|
36
|
+
"@hed-hog/api-locale": "0.0.11",
|
|
37
|
+
"@hed-hog/api-prisma": "0.0.4",
|
|
38
|
+
"@hed-hog/api-types": "0.0.1"
|
|
39
39
|
},
|
|
40
40
|
"exports": {
|
|
41
41
|
".": {
|