@hed-hog/core 0.0.330 → 0.0.332
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/ai/ai.service.d.ts +1 -1
- package/dist/auth/auth.controller.d.ts +23 -23
- package/dist/auth/auth.service.d.ts +41 -41
- package/dist/challenge/challenge.service.d.ts +14 -14
- package/dist/core/system.controller.d.ts +2 -2
- package/dist/core/system.service.d.ts +2 -2
- package/dist/dashboard/dashboard/dashboard.controller.d.ts +87 -87
- package/dist/dashboard/dashboard/dashboard.service.d.ts +87 -87
- package/dist/dashboard/dashboard-component/dashboard-component.controller.d.ts +33 -33
- package/dist/dashboard/dashboard-component/dashboard-component.service.d.ts +33 -33
- package/dist/dashboard/dashboard-component-role/dashboard-component-role.controller.d.ts +42 -42
- package/dist/dashboard/dashboard-component-role/dashboard-component-role.service.d.ts +42 -42
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +12 -12
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +12 -12
- package/dist/dashboard/dashboard-item/dashboard-item.controller.d.ts +7 -7
- package/dist/dashboard/dashboard-item/dashboard-item.service.d.ts +7 -7
- package/dist/dashboard/dashboard-role/dashboard-role.controller.d.ts +33 -33
- package/dist/dashboard/dashboard-role/dashboard-role.service.d.ts +33 -33
- 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/file/file.controller.d.ts +8 -8
- package/dist/file/file.service.d.ts +18 -18
- package/dist/mail/mail.controller.d.ts +15 -15
- package/dist/mail/mail.service.d.ts +15 -15
- package/dist/mail-profile/mail-profile.controller.d.ts +9 -9
- package/dist/mail-profile/mail-profile.service.d.ts +9 -9
- package/dist/mail-sent/mail-sent.controller.d.ts +17 -17
- package/dist/mail-sent/mail-sent.service.d.ts +17 -17
- package/dist/mcp-chat/mcp-chat.controller.d.ts +10 -10
- package/dist/mcp-chat/mcp-chat.service.d.ts +10 -10
- package/dist/menu/menu.controller.d.ts +11 -11
- package/dist/menu/menu.service.d.ts +11 -11
- package/dist/profile/profile.controller.d.ts +17 -17
- package/dist/profile/profile.service.d.ts +17 -17
- package/dist/role/role.controller.d.ts +12 -12
- package/dist/role/role.service.d.ts +12 -12
- package/dist/route/route.service.d.ts.map +1 -1
- package/dist/route/route.service.js +14 -0
- package/dist/route/route.service.js.map +1 -1
- package/dist/screen/screen.controller.d.ts +3 -3
- package/dist/screen/screen.service.d.ts +3 -3
- package/dist/session/session.controller.d.ts +4 -4
- package/dist/session/session.service.d.ts +12 -12
- package/dist/setting/setting.controller.d.ts +13 -13
- package/dist/setting/setting.service.d.ts +13 -13
- package/dist/user/user.controller.d.ts +24 -24
- package/dist/user/user.service.d.ts +55 -55
- package/hedhog/data/menu.yaml +18 -4
- package/hedhog/frontend/app/account/layout.tsx.ejs +1 -1
- package/hedhog/frontend/app/configurations/[slug]/components/setting-field.tsx.ejs +27 -23
- package/hedhog/frontend/app/mail/template/page.tsx.ejs +5 -5
- package/hedhog/frontend/app/menu/page.tsx.ejs +7 -2
- package/hedhog/frontend/app/preferences/page.tsx.ejs +1 -1
- package/hedhog/frontend/app/roles/page.tsx.ejs +7 -2
- package/hedhog/frontend/app/routes/page.tsx.ejs +1339 -0
- package/hedhog/frontend/app/users/page.tsx.ejs +1 -1
- package/hedhog/frontend/messages/en.json +108 -1
- package/hedhog/frontend/messages/pt.json +108 -1
- package/package.json +5 -5
- package/src/route/route.service.ts +14 -0
|
@@ -18,29 +18,29 @@ export declare class SessionService {
|
|
|
18
18
|
create(locale: string, userId: number, ipAddress: string, userAgent: string): Promise<{
|
|
19
19
|
token: string;
|
|
20
20
|
session: {
|
|
21
|
-
created_at: Date;
|
|
22
21
|
id: number;
|
|
23
|
-
updated_at: Date;
|
|
24
|
-
user_id: number;
|
|
25
22
|
hash: string;
|
|
23
|
+
created_at: Date;
|
|
24
|
+
updated_at: Date;
|
|
26
25
|
ip_address: string;
|
|
27
26
|
user_agent: string;
|
|
28
|
-
|
|
27
|
+
user_id: number;
|
|
29
28
|
expires_at: Date;
|
|
29
|
+
revoked_at: Date | null;
|
|
30
30
|
};
|
|
31
31
|
}>;
|
|
32
32
|
refresh(locale: string, refreshToken: string, ipAddress: string, userAgent: string): Promise<{
|
|
33
33
|
token: string;
|
|
34
34
|
session: {
|
|
35
|
-
created_at: Date;
|
|
36
35
|
id: number;
|
|
37
|
-
updated_at: Date;
|
|
38
|
-
user_id: number;
|
|
39
36
|
hash: string;
|
|
37
|
+
created_at: Date;
|
|
38
|
+
updated_at: Date;
|
|
40
39
|
ip_address: string;
|
|
41
40
|
user_agent: string;
|
|
42
|
-
|
|
41
|
+
user_id: number;
|
|
43
42
|
expires_at: Date;
|
|
43
|
+
revoked_at: Date | null;
|
|
44
44
|
};
|
|
45
45
|
}>;
|
|
46
46
|
deleteRefreshTokenCookie(res: any, refreshToken: string): Promise<{
|
|
@@ -66,15 +66,15 @@ export declare class SessionService {
|
|
|
66
66
|
revokeAllOtherSessions(userId: number, sessionId: number): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
67
67
|
revokeAllSessions(userId: number): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
68
68
|
revokeUserSession(userId: number, sessionId: number, locale: string): Promise<{
|
|
69
|
-
created_at: Date;
|
|
70
69
|
id: number;
|
|
71
|
-
updated_at: Date;
|
|
72
|
-
user_id: number;
|
|
73
70
|
hash: string;
|
|
71
|
+
created_at: Date;
|
|
72
|
+
updated_at: Date;
|
|
74
73
|
ip_address: string;
|
|
75
74
|
user_agent: string;
|
|
76
|
-
|
|
75
|
+
user_id: number;
|
|
77
76
|
expires_at: Date;
|
|
77
|
+
revoked_at: Date | null;
|
|
78
78
|
}>;
|
|
79
79
|
/**
|
|
80
80
|
* Enforce maximum concurrent sessions limit for a user.
|
|
@@ -39,9 +39,9 @@ export declare class SettingsController {
|
|
|
39
39
|
slug: string;
|
|
40
40
|
};
|
|
41
41
|
} & {
|
|
42
|
+
id: number;
|
|
42
43
|
value: string | null;
|
|
43
44
|
created_at: Date;
|
|
44
|
-
id: number;
|
|
45
45
|
updated_at: Date;
|
|
46
46
|
user_id: number;
|
|
47
47
|
setting_id: number;
|
|
@@ -59,15 +59,15 @@ export declare class SettingsController {
|
|
|
59
59
|
data: any[];
|
|
60
60
|
}>;
|
|
61
61
|
get(settingId: number): Promise<{
|
|
62
|
+
type: import("@prisma/client").$Enums.setting_type_0f055cd5ea_enum;
|
|
63
|
+
id: number;
|
|
62
64
|
value: string | null;
|
|
63
65
|
created_at: Date;
|
|
64
|
-
id: number;
|
|
65
66
|
updated_at: Date;
|
|
66
67
|
slug: string;
|
|
67
|
-
|
|
68
|
+
group_id: number;
|
|
68
69
|
component: import("@prisma/client").$Enums.setting_component_6e72a03bda_enum;
|
|
69
70
|
user_override: boolean;
|
|
70
|
-
group_id: number;
|
|
71
71
|
subgroup_id: number | null;
|
|
72
72
|
}>;
|
|
73
73
|
importSettings(locale: string, file: MulterFile): Promise<{
|
|
@@ -82,15 +82,15 @@ export declare class SettingsController {
|
|
|
82
82
|
updatedCount: number;
|
|
83
83
|
}>;
|
|
84
84
|
create(locale: string, data: CreateDTO): Promise<{
|
|
85
|
+
type: import("@prisma/client").$Enums.setting_type_0f055cd5ea_enum;
|
|
86
|
+
id: number;
|
|
85
87
|
value: string | null;
|
|
86
88
|
created_at: Date;
|
|
87
|
-
id: number;
|
|
88
89
|
updated_at: Date;
|
|
89
90
|
slug: string;
|
|
90
|
-
|
|
91
|
+
group_id: number;
|
|
91
92
|
component: import("@prisma/client").$Enums.setting_component_6e72a03bda_enum;
|
|
92
93
|
user_override: boolean;
|
|
93
|
-
group_id: number;
|
|
94
94
|
subgroup_id: number | null;
|
|
95
95
|
}>;
|
|
96
96
|
updateUserFromSlug(slug: string, { value }: SettingUserDTO, { id }: {
|
|
@@ -101,30 +101,30 @@ export declare class SettingsController {
|
|
|
101
101
|
setting_id: number;
|
|
102
102
|
}>;
|
|
103
103
|
updateFromSlug(slug: string, data: UpdateDTO): Promise<{
|
|
104
|
+
type: import("@prisma/client").$Enums.setting_type_0f055cd5ea_enum;
|
|
105
|
+
id: number;
|
|
104
106
|
value: string | null;
|
|
105
107
|
created_at: Date;
|
|
106
|
-
id: number;
|
|
107
108
|
updated_at: Date;
|
|
108
109
|
slug: string;
|
|
109
|
-
|
|
110
|
+
group_id: number;
|
|
110
111
|
component: import("@prisma/client").$Enums.setting_component_6e72a03bda_enum;
|
|
111
112
|
user_override: boolean;
|
|
112
|
-
group_id: number;
|
|
113
113
|
subgroup_id: number | null;
|
|
114
114
|
}>;
|
|
115
115
|
setManySettings(data: SettingDTO): Promise<{
|
|
116
116
|
success: boolean;
|
|
117
117
|
}>;
|
|
118
118
|
update(settingId: number, data: UpdateDTO): Promise<{
|
|
119
|
+
type: import("@prisma/client").$Enums.setting_type_0f055cd5ea_enum;
|
|
120
|
+
id: number;
|
|
119
121
|
value: string | null;
|
|
120
122
|
created_at: Date;
|
|
121
|
-
id: number;
|
|
122
123
|
updated_at: Date;
|
|
123
124
|
slug: string;
|
|
124
|
-
|
|
125
|
+
group_id: number;
|
|
125
126
|
component: import("@prisma/client").$Enums.setting_component_6e72a03bda_enum;
|
|
126
127
|
user_override: boolean;
|
|
127
|
-
group_id: number;
|
|
128
128
|
subgroup_id: number | null;
|
|
129
129
|
}>;
|
|
130
130
|
delete(locale: string, data: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
|
|
@@ -62,54 +62,54 @@ export declare class SettingService {
|
|
|
62
62
|
data: any[];
|
|
63
63
|
}>;
|
|
64
64
|
get(settingId: number): Promise<{
|
|
65
|
+
type: import("@prisma/client").$Enums.setting_type_0f055cd5ea_enum;
|
|
66
|
+
id: number;
|
|
65
67
|
value: string | null;
|
|
66
68
|
created_at: Date;
|
|
67
|
-
id: number;
|
|
68
69
|
updated_at: Date;
|
|
69
70
|
slug: string;
|
|
70
|
-
|
|
71
|
+
group_id: number;
|
|
71
72
|
component: import("@prisma/client").$Enums.setting_component_6e72a03bda_enum;
|
|
72
73
|
user_override: boolean;
|
|
73
|
-
group_id: number;
|
|
74
74
|
subgroup_id: number | null;
|
|
75
75
|
}>;
|
|
76
76
|
create(data: CreateDTO, _locale: string): Promise<{
|
|
77
|
+
type: import("@prisma/client").$Enums.setting_type_0f055cd5ea_enum;
|
|
78
|
+
id: number;
|
|
77
79
|
value: string | null;
|
|
78
80
|
created_at: Date;
|
|
79
|
-
id: number;
|
|
80
81
|
updated_at: Date;
|
|
81
82
|
slug: string;
|
|
82
|
-
|
|
83
|
+
group_id: number;
|
|
83
84
|
component: import("@prisma/client").$Enums.setting_component_6e72a03bda_enum;
|
|
84
85
|
user_override: boolean;
|
|
85
|
-
group_id: number;
|
|
86
86
|
subgroup_id: number | null;
|
|
87
87
|
}>;
|
|
88
88
|
update({ id, data }: {
|
|
89
89
|
id: number;
|
|
90
90
|
data: UpdateDTO;
|
|
91
91
|
}): Promise<{
|
|
92
|
+
type: import("@prisma/client").$Enums.setting_type_0f055cd5ea_enum;
|
|
93
|
+
id: number;
|
|
92
94
|
value: string | null;
|
|
93
95
|
created_at: Date;
|
|
94
|
-
id: number;
|
|
95
96
|
updated_at: Date;
|
|
96
97
|
slug: string;
|
|
97
|
-
|
|
98
|
+
group_id: number;
|
|
98
99
|
component: import("@prisma/client").$Enums.setting_component_6e72a03bda_enum;
|
|
99
100
|
user_override: boolean;
|
|
100
|
-
group_id: number;
|
|
101
101
|
subgroup_id: number | null;
|
|
102
102
|
}>;
|
|
103
103
|
updateFromSlug(slug: string, data: UpdateDTO): Promise<{
|
|
104
|
+
type: import("@prisma/client").$Enums.setting_type_0f055cd5ea_enum;
|
|
105
|
+
id: number;
|
|
104
106
|
value: string | null;
|
|
105
107
|
created_at: Date;
|
|
106
|
-
id: number;
|
|
107
108
|
updated_at: Date;
|
|
108
109
|
slug: string;
|
|
109
|
-
|
|
110
|
+
group_id: number;
|
|
110
111
|
component: import("@prisma/client").$Enums.setting_component_6e72a03bda_enum;
|
|
111
112
|
user_override: boolean;
|
|
112
|
-
group_id: number;
|
|
113
113
|
subgroup_id: number | null;
|
|
114
114
|
}>;
|
|
115
115
|
private normalizeValueForComparison;
|
|
@@ -131,9 +131,9 @@ export declare class SettingService {
|
|
|
131
131
|
slug: string;
|
|
132
132
|
};
|
|
133
133
|
} & {
|
|
134
|
+
id: number;
|
|
134
135
|
value: string | null;
|
|
135
136
|
created_at: Date;
|
|
136
|
-
id: number;
|
|
137
137
|
updated_at: Date;
|
|
138
138
|
user_id: number;
|
|
139
139
|
setting_id: number;
|
|
@@ -22,61 +22,61 @@ export declare class UserController {
|
|
|
22
22
|
}>;
|
|
23
23
|
get(userId: number, locale: string): Promise<{
|
|
24
24
|
user_identifier: {
|
|
25
|
+
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
26
|
+
id: number;
|
|
25
27
|
value: string;
|
|
26
28
|
created_at: Date;
|
|
27
|
-
id: number;
|
|
28
29
|
updated_at: Date;
|
|
29
30
|
user_id: number;
|
|
30
|
-
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
31
31
|
enabled: boolean;
|
|
32
32
|
verified_at: Date | null;
|
|
33
33
|
}[];
|
|
34
34
|
user_account: {
|
|
35
|
-
created_at: Date;
|
|
36
35
|
id: number;
|
|
37
|
-
updated_at: Date;
|
|
38
|
-
user_id: number;
|
|
39
36
|
email: string | null;
|
|
40
37
|
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
38
|
+
created_at: Date;
|
|
39
|
+
updated_at: Date;
|
|
40
|
+
user_id: number;
|
|
41
41
|
provider_user_id: string;
|
|
42
42
|
scopes: string | null;
|
|
43
43
|
refresh_token: import("@prisma/client/runtime/library").Bytes | null;
|
|
44
44
|
token_expires_at: Date | null;
|
|
45
45
|
}[];
|
|
46
46
|
user_activity: {
|
|
47
|
-
created_at: Date;
|
|
48
47
|
id: number;
|
|
48
|
+
action: string;
|
|
49
|
+
created_at: Date;
|
|
49
50
|
updated_at: Date;
|
|
50
51
|
user_id: number;
|
|
51
|
-
action: string;
|
|
52
52
|
}[];
|
|
53
53
|
user_credential: {
|
|
54
|
-
|
|
54
|
+
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
55
55
|
id: number;
|
|
56
|
+
hash: string;
|
|
57
|
+
created_at: Date;
|
|
56
58
|
updated_at: Date;
|
|
57
59
|
user_id: number;
|
|
58
|
-
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
59
|
-
hash: string;
|
|
60
|
-
revoked_at: Date | null;
|
|
61
60
|
expires_at: Date | null;
|
|
61
|
+
revoked_at: Date | null;
|
|
62
62
|
requires_reset: boolean;
|
|
63
63
|
}[];
|
|
64
64
|
user_session: {
|
|
65
|
-
created_at: Date;
|
|
66
65
|
id: number;
|
|
67
|
-
updated_at: Date;
|
|
68
|
-
user_id: number;
|
|
69
66
|
hash: string;
|
|
67
|
+
created_at: Date;
|
|
68
|
+
updated_at: Date;
|
|
70
69
|
ip_address: string;
|
|
71
70
|
user_agent: string;
|
|
72
|
-
|
|
71
|
+
user_id: number;
|
|
73
72
|
expires_at: Date;
|
|
73
|
+
revoked_at: Date | null;
|
|
74
74
|
}[];
|
|
75
75
|
} & {
|
|
76
|
-
|
|
76
|
+
name: string;
|
|
77
77
|
id: number;
|
|
78
|
+
created_at: Date;
|
|
78
79
|
updated_at: Date;
|
|
79
|
-
name: string;
|
|
80
80
|
photo_id: number | null;
|
|
81
81
|
suspended_until: Date | null;
|
|
82
82
|
last_login_at: Date | null;
|
|
@@ -86,10 +86,10 @@ export declare class UserController {
|
|
|
86
86
|
openPublicAvatar(fileId: number, locale: string, res: any): Promise<void>;
|
|
87
87
|
create(data: CreateWithEmailAndPasswordDTO, locale: string): Promise<{
|
|
88
88
|
user: {
|
|
89
|
-
|
|
89
|
+
name: string;
|
|
90
90
|
id: number;
|
|
91
|
+
created_at: Date;
|
|
91
92
|
updated_at: Date;
|
|
92
|
-
name: string;
|
|
93
93
|
photo_id: number | null;
|
|
94
94
|
suspended_until: Date | null;
|
|
95
95
|
last_login_at: Date | null;
|
|
@@ -101,10 +101,10 @@ export declare class UserController {
|
|
|
101
101
|
};
|
|
102
102
|
}>;
|
|
103
103
|
update(userId: number, data: UpdateDTO, locale: string): Promise<{
|
|
104
|
-
|
|
104
|
+
name: string;
|
|
105
105
|
id: number;
|
|
106
|
+
created_at: Date;
|
|
106
107
|
updated_at: Date;
|
|
107
|
-
name: string;
|
|
108
108
|
photo_id: number | null;
|
|
109
109
|
suspended_until: Date | null;
|
|
110
110
|
last_login_at: Date | null;
|
|
@@ -120,12 +120,12 @@ export declare class UserController {
|
|
|
120
120
|
path: string;
|
|
121
121
|
}>;
|
|
122
122
|
verifyIdentifier(locale: string, userId: number, identifierId: number): Promise<{
|
|
123
|
+
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
124
|
+
id: number;
|
|
123
125
|
value: string;
|
|
124
126
|
created_at: Date;
|
|
125
|
-
id: number;
|
|
126
127
|
updated_at: Date;
|
|
127
128
|
user_id: number;
|
|
128
|
-
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
129
129
|
enabled: boolean;
|
|
130
130
|
verified_at: Date | null;
|
|
131
131
|
}>;
|
|
@@ -153,8 +153,8 @@ export declare class UserController {
|
|
|
153
153
|
roles: any;
|
|
154
154
|
}[]>;
|
|
155
155
|
assignRoleToUser(userId: number, roleId: number, locale: string): Promise<{
|
|
156
|
-
created_at: Date;
|
|
157
156
|
id: number;
|
|
157
|
+
created_at: Date;
|
|
158
158
|
updated_at: Date;
|
|
159
159
|
user_id: number;
|
|
160
160
|
role_id: number;
|
|
@@ -20,12 +20,12 @@ export declare class UserService {
|
|
|
20
20
|
private validateRoleExists;
|
|
21
21
|
private validateEmailAvailable;
|
|
22
22
|
verifyIdentifier(locale: string, userId: number, identifierId: number): Promise<{
|
|
23
|
+
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
24
|
+
id: number;
|
|
23
25
|
value: string;
|
|
24
26
|
created_at: Date;
|
|
25
|
-
id: number;
|
|
26
27
|
updated_at: Date;
|
|
27
28
|
user_id: number;
|
|
28
|
-
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
29
29
|
enabled: boolean;
|
|
30
30
|
verified_at: Date | null;
|
|
31
31
|
}>;
|
|
@@ -45,61 +45,61 @@ export declare class UserService {
|
|
|
45
45
|
}>;
|
|
46
46
|
get(locale: string, userId: number): Promise<{
|
|
47
47
|
user_identifier: {
|
|
48
|
+
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
49
|
+
id: number;
|
|
48
50
|
value: string;
|
|
49
51
|
created_at: Date;
|
|
50
|
-
id: number;
|
|
51
52
|
updated_at: Date;
|
|
52
53
|
user_id: number;
|
|
53
|
-
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
54
54
|
enabled: boolean;
|
|
55
55
|
verified_at: Date | null;
|
|
56
56
|
}[];
|
|
57
57
|
user_account: {
|
|
58
|
-
created_at: Date;
|
|
59
58
|
id: number;
|
|
60
|
-
updated_at: Date;
|
|
61
|
-
user_id: number;
|
|
62
59
|
email: string | null;
|
|
63
60
|
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
61
|
+
created_at: Date;
|
|
62
|
+
updated_at: Date;
|
|
63
|
+
user_id: number;
|
|
64
64
|
provider_user_id: string;
|
|
65
65
|
scopes: string | null;
|
|
66
66
|
refresh_token: import("@prisma/client/runtime/library").Bytes | null;
|
|
67
67
|
token_expires_at: Date | null;
|
|
68
68
|
}[];
|
|
69
69
|
user_activity: {
|
|
70
|
-
created_at: Date;
|
|
71
70
|
id: number;
|
|
71
|
+
action: string;
|
|
72
|
+
created_at: Date;
|
|
72
73
|
updated_at: Date;
|
|
73
74
|
user_id: number;
|
|
74
|
-
action: string;
|
|
75
75
|
}[];
|
|
76
76
|
user_credential: {
|
|
77
|
-
|
|
77
|
+
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
78
78
|
id: number;
|
|
79
|
+
hash: string;
|
|
80
|
+
created_at: Date;
|
|
79
81
|
updated_at: Date;
|
|
80
82
|
user_id: number;
|
|
81
|
-
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
82
|
-
hash: string;
|
|
83
|
-
revoked_at: Date | null;
|
|
84
83
|
expires_at: Date | null;
|
|
84
|
+
revoked_at: Date | null;
|
|
85
85
|
requires_reset: boolean;
|
|
86
86
|
}[];
|
|
87
87
|
user_session: {
|
|
88
|
-
created_at: Date;
|
|
89
88
|
id: number;
|
|
90
|
-
updated_at: Date;
|
|
91
|
-
user_id: number;
|
|
92
89
|
hash: string;
|
|
90
|
+
created_at: Date;
|
|
91
|
+
updated_at: Date;
|
|
93
92
|
ip_address: string;
|
|
94
93
|
user_agent: string;
|
|
95
|
-
|
|
94
|
+
user_id: number;
|
|
96
95
|
expires_at: Date;
|
|
96
|
+
revoked_at: Date | null;
|
|
97
97
|
}[];
|
|
98
98
|
} & {
|
|
99
|
-
|
|
99
|
+
name: string;
|
|
100
100
|
id: number;
|
|
101
|
+
created_at: Date;
|
|
101
102
|
updated_at: Date;
|
|
102
|
-
name: string;
|
|
103
103
|
photo_id: number | null;
|
|
104
104
|
suspended_until: Date | null;
|
|
105
105
|
last_login_at: Date | null;
|
|
@@ -108,10 +108,10 @@ export declare class UserService {
|
|
|
108
108
|
}>;
|
|
109
109
|
createWithEmailAndPassword(locale: string, { email, name, password }: CreateWithEmailAndPasswordDTO): Promise<{
|
|
110
110
|
user: {
|
|
111
|
-
|
|
111
|
+
name: string;
|
|
112
112
|
id: number;
|
|
113
|
+
created_at: Date;
|
|
113
114
|
updated_at: Date;
|
|
114
|
-
name: string;
|
|
115
115
|
photo_id: number | null;
|
|
116
116
|
suspended_until: Date | null;
|
|
117
117
|
last_login_at: Date | null;
|
|
@@ -123,10 +123,10 @@ export declare class UserService {
|
|
|
123
123
|
};
|
|
124
124
|
}>;
|
|
125
125
|
update(locale: string, userId: number, { name }: UpdateDTO): Promise<{
|
|
126
|
-
|
|
126
|
+
name: string;
|
|
127
127
|
id: number;
|
|
128
|
+
created_at: Date;
|
|
128
129
|
updated_at: Date;
|
|
129
|
-
name: string;
|
|
130
130
|
photo_id: number | null;
|
|
131
131
|
suspended_until: Date | null;
|
|
132
132
|
last_login_at: Date | null;
|
|
@@ -145,61 +145,61 @@ export declare class UserService {
|
|
|
145
145
|
openPublicAvatar(locale: string, fileId: number, res: any): Promise<void>;
|
|
146
146
|
findUserById(locale: string, id: number): Promise<{
|
|
147
147
|
user_identifier: {
|
|
148
|
+
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
149
|
+
id: number;
|
|
148
150
|
value: string;
|
|
149
151
|
created_at: Date;
|
|
150
|
-
id: number;
|
|
151
152
|
updated_at: Date;
|
|
152
153
|
user_id: number;
|
|
153
|
-
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
154
154
|
enabled: boolean;
|
|
155
155
|
verified_at: Date | null;
|
|
156
156
|
}[];
|
|
157
157
|
user_account: {
|
|
158
|
-
created_at: Date;
|
|
159
158
|
id: number;
|
|
160
|
-
updated_at: Date;
|
|
161
|
-
user_id: number;
|
|
162
159
|
email: string | null;
|
|
163
160
|
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
161
|
+
created_at: Date;
|
|
162
|
+
updated_at: Date;
|
|
163
|
+
user_id: number;
|
|
164
164
|
provider_user_id: string;
|
|
165
165
|
scopes: string | null;
|
|
166
166
|
refresh_token: import("@prisma/client/runtime/library").Bytes | null;
|
|
167
167
|
token_expires_at: Date | null;
|
|
168
168
|
}[];
|
|
169
169
|
user_activity: {
|
|
170
|
-
created_at: Date;
|
|
171
170
|
id: number;
|
|
171
|
+
action: string;
|
|
172
|
+
created_at: Date;
|
|
172
173
|
updated_at: Date;
|
|
173
174
|
user_id: number;
|
|
174
|
-
action: string;
|
|
175
175
|
}[];
|
|
176
176
|
user_credential: {
|
|
177
|
-
|
|
177
|
+
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
178
178
|
id: number;
|
|
179
|
+
hash: string;
|
|
180
|
+
created_at: Date;
|
|
179
181
|
updated_at: Date;
|
|
180
182
|
user_id: number;
|
|
181
|
-
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
182
|
-
hash: string;
|
|
183
|
-
revoked_at: Date | null;
|
|
184
183
|
expires_at: Date | null;
|
|
184
|
+
revoked_at: Date | null;
|
|
185
185
|
requires_reset: boolean;
|
|
186
186
|
}[];
|
|
187
187
|
user_session: {
|
|
188
|
-
created_at: Date;
|
|
189
188
|
id: number;
|
|
190
|
-
updated_at: Date;
|
|
191
|
-
user_id: number;
|
|
192
189
|
hash: string;
|
|
190
|
+
created_at: Date;
|
|
191
|
+
updated_at: Date;
|
|
193
192
|
ip_address: string;
|
|
194
193
|
user_agent: string;
|
|
195
|
-
|
|
194
|
+
user_id: number;
|
|
196
195
|
expires_at: Date;
|
|
196
|
+
revoked_at: Date | null;
|
|
197
197
|
}[];
|
|
198
198
|
} & {
|
|
199
|
-
|
|
199
|
+
name: string;
|
|
200
200
|
id: number;
|
|
201
|
+
created_at: Date;
|
|
201
202
|
updated_at: Date;
|
|
202
|
-
name: string;
|
|
203
203
|
photo_id: number | null;
|
|
204
204
|
suspended_until: Date | null;
|
|
205
205
|
last_login_at: Date | null;
|
|
@@ -208,42 +208,42 @@ export declare class UserService {
|
|
|
208
208
|
}>;
|
|
209
209
|
findUserByEmail(_locale: string, email: string): Promise<{
|
|
210
210
|
user_identifier: {
|
|
211
|
+
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
212
|
+
id: number;
|
|
211
213
|
value: string;
|
|
212
214
|
created_at: Date;
|
|
213
|
-
id: number;
|
|
214
215
|
updated_at: Date;
|
|
215
216
|
user_id: number;
|
|
216
|
-
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
217
217
|
enabled: boolean;
|
|
218
218
|
verified_at: Date | null;
|
|
219
219
|
}[];
|
|
220
220
|
user_credential: {
|
|
221
|
-
|
|
221
|
+
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
222
222
|
id: number;
|
|
223
|
+
hash: string;
|
|
224
|
+
created_at: Date;
|
|
223
225
|
updated_at: Date;
|
|
224
226
|
user_id: number;
|
|
225
|
-
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
226
|
-
hash: string;
|
|
227
|
-
revoked_at: Date | null;
|
|
228
227
|
expires_at: Date | null;
|
|
228
|
+
revoked_at: Date | null;
|
|
229
229
|
requires_reset: boolean;
|
|
230
230
|
}[];
|
|
231
231
|
user_session: {
|
|
232
|
-
created_at: Date;
|
|
233
232
|
id: number;
|
|
234
|
-
updated_at: Date;
|
|
235
|
-
user_id: number;
|
|
236
233
|
hash: string;
|
|
234
|
+
created_at: Date;
|
|
235
|
+
updated_at: Date;
|
|
237
236
|
ip_address: string;
|
|
238
237
|
user_agent: string;
|
|
239
|
-
|
|
238
|
+
user_id: number;
|
|
240
239
|
expires_at: Date;
|
|
240
|
+
revoked_at: Date | null;
|
|
241
241
|
}[];
|
|
242
242
|
} & {
|
|
243
|
-
|
|
243
|
+
name: string;
|
|
244
244
|
id: number;
|
|
245
|
+
created_at: Date;
|
|
245
246
|
updated_at: Date;
|
|
246
|
-
name: string;
|
|
247
247
|
photo_id: number | null;
|
|
248
248
|
suspended_until: Date | null;
|
|
249
249
|
last_login_at: Date | null;
|
|
@@ -273,8 +273,8 @@ export declare class UserService {
|
|
|
273
273
|
roles: any;
|
|
274
274
|
}[]>;
|
|
275
275
|
assignRoleToUser(locale: string, userId: number, roleId: number): Promise<{
|
|
276
|
-
created_at: Date;
|
|
277
276
|
id: number;
|
|
277
|
+
created_at: Date;
|
|
278
278
|
updated_at: Date;
|
|
279
279
|
user_id: number;
|
|
280
280
|
role_id: number;
|
|
@@ -283,11 +283,11 @@ export declare class UserService {
|
|
|
283
283
|
count: number;
|
|
284
284
|
}>;
|
|
285
285
|
registerUserActivity(userId: number | null | undefined, action: string): Promise<{
|
|
286
|
-
created_at: Date;
|
|
287
286
|
id: number;
|
|
287
|
+
action: string;
|
|
288
|
+
created_at: Date;
|
|
288
289
|
updated_at: Date;
|
|
289
290
|
user_id: number;
|
|
290
|
-
action: string;
|
|
291
291
|
}>;
|
|
292
292
|
private validateDeleteIds;
|
|
293
293
|
private deleteOldAvatar;
|
package/hedhog/data/menu.yaml
CHANGED
|
@@ -66,8 +66,22 @@
|
|
|
66
66
|
- menu_id:
|
|
67
67
|
where:
|
|
68
68
|
slug: /core/management
|
|
69
|
-
url: /core/
|
|
69
|
+
url: /core/routes
|
|
70
70
|
order: 2
|
|
71
|
+
icon: route
|
|
72
|
+
name:
|
|
73
|
+
en: Routes
|
|
74
|
+
pt: Rotas
|
|
75
|
+
slug: /core/routes
|
|
76
|
+
relations:
|
|
77
|
+
role:
|
|
78
|
+
- where:
|
|
79
|
+
slug: admin
|
|
80
|
+
- menu_id:
|
|
81
|
+
where:
|
|
82
|
+
slug: /core/management
|
|
83
|
+
url: /core/configurations
|
|
84
|
+
order: 3
|
|
71
85
|
icon: settings-2
|
|
72
86
|
name:
|
|
73
87
|
en: Configurations
|
|
@@ -81,7 +95,7 @@
|
|
|
81
95
|
where:
|
|
82
96
|
slug: /core/management
|
|
83
97
|
url: /core/mail
|
|
84
|
-
order:
|
|
98
|
+
order: 4
|
|
85
99
|
icon: mail
|
|
86
100
|
name:
|
|
87
101
|
en: Emails
|
|
@@ -143,7 +157,7 @@
|
|
|
143
157
|
where:
|
|
144
158
|
slug: /core/management
|
|
145
159
|
url: /core/ai_agent
|
|
146
|
-
order:
|
|
160
|
+
order: 7
|
|
147
161
|
icon: bot
|
|
148
162
|
name:
|
|
149
163
|
en: AI Agents
|
|
@@ -157,7 +171,7 @@
|
|
|
157
171
|
where:
|
|
158
172
|
slug: /core/management
|
|
159
173
|
url: /core/integrations-webhooks
|
|
160
|
-
order:
|
|
174
|
+
order: 8
|
|
161
175
|
icon: webhook
|
|
162
176
|
name:
|
|
163
177
|
en: Integrations and Webhooks
|
|
@@ -62,7 +62,7 @@ export default function AccountLayout({ children }: LayoutProps) {
|
|
|
62
62
|
<div className="flex flex-col pl-4 h-screen">
|
|
63
63
|
<PageHeader
|
|
64
64
|
breadcrumbs={[
|
|
65
|
-
{ label: '
|
|
65
|
+
{ label: t('home'), href: '/' },
|
|
66
66
|
{ label: t('breadcrumbLabel') },
|
|
67
67
|
]}
|
|
68
68
|
title={t('title')}
|