@hed-hog/core 0.0.330 → 0.0.331
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/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/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/users/page.tsx.ejs +1 -1
- package/hedhog/frontend/messages/en.json +34 -1
- package/hedhog/frontend/messages/pt.json +34 -1
- package/package.json +3 -3
|
@@ -8,19 +8,19 @@ export declare class McpChatController {
|
|
|
8
8
|
listConversations({ id }: {
|
|
9
9
|
id: number;
|
|
10
10
|
}): Promise<{
|
|
11
|
-
created_at: Date;
|
|
12
11
|
id: number;
|
|
13
|
-
updated_at: Date;
|
|
14
12
|
title: string;
|
|
13
|
+
created_at: Date;
|
|
14
|
+
updated_at: Date;
|
|
15
15
|
}[]>;
|
|
16
16
|
createConversation({ id }: {
|
|
17
17
|
id: number;
|
|
18
18
|
}, dto: CreateConversationDTO): Promise<{
|
|
19
|
-
created_at: Date;
|
|
20
19
|
id: number;
|
|
20
|
+
title: string | null;
|
|
21
|
+
created_at: Date;
|
|
21
22
|
updated_at: Date;
|
|
22
23
|
user_id: number;
|
|
23
|
-
title: string | null;
|
|
24
24
|
}>;
|
|
25
25
|
deleteConversations({ id }: {
|
|
26
26
|
id: number;
|
|
@@ -30,25 +30,25 @@ export declare class McpChatController {
|
|
|
30
30
|
getMessages({ id }: {
|
|
31
31
|
id: number;
|
|
32
32
|
}, conversationId: number): Promise<{
|
|
33
|
-
created_at: Date;
|
|
34
33
|
id: number;
|
|
35
|
-
updated_at: Date;
|
|
36
34
|
content: string;
|
|
37
35
|
role: import("@prisma/client").$Enums.mcp_conversation_message_role_422a6ea954_enum;
|
|
38
|
-
|
|
36
|
+
created_at: Date;
|
|
37
|
+
updated_at: Date;
|
|
39
38
|
conversation_id: number;
|
|
39
|
+
tool_name: string | null;
|
|
40
40
|
tool_call_id: string | null;
|
|
41
41
|
}[]>;
|
|
42
42
|
sendMessage({ id }: {
|
|
43
43
|
id: number;
|
|
44
44
|
}, conversationId: number, dto: SendMessageDTO, locale: string): Promise<{
|
|
45
|
-
created_at: Date;
|
|
46
45
|
id: number;
|
|
47
|
-
updated_at: Date;
|
|
48
46
|
content: string;
|
|
49
47
|
role: import("@prisma/client").$Enums.mcp_conversation_message_role_422a6ea954_enum;
|
|
50
|
-
|
|
48
|
+
created_at: Date;
|
|
49
|
+
updated_at: Date;
|
|
51
50
|
conversation_id: number;
|
|
51
|
+
tool_name: string | null;
|
|
52
52
|
tool_call_id: string | null;
|
|
53
53
|
}[]>;
|
|
54
54
|
}
|
|
@@ -8,39 +8,39 @@ export declare class McpChatService {
|
|
|
8
8
|
private readonly registry;
|
|
9
9
|
constructor(prisma: PrismaService, setting: SettingService, registry: McpRegistryService);
|
|
10
10
|
listConversations(userId: number): Promise<{
|
|
11
|
-
created_at: Date;
|
|
12
11
|
id: number;
|
|
13
|
-
updated_at: Date;
|
|
14
12
|
title: string;
|
|
13
|
+
created_at: Date;
|
|
14
|
+
updated_at: Date;
|
|
15
15
|
}[]>;
|
|
16
16
|
createConversation(userId: number, dto: CreateConversationDTO): Promise<{
|
|
17
|
-
created_at: Date;
|
|
18
17
|
id: number;
|
|
18
|
+
title: string | null;
|
|
19
|
+
created_at: Date;
|
|
19
20
|
updated_at: Date;
|
|
20
21
|
user_id: number;
|
|
21
|
-
title: string | null;
|
|
22
22
|
}>;
|
|
23
23
|
deleteConversations(userId: number, ids: number[]): Promise<{
|
|
24
24
|
count: number;
|
|
25
25
|
}>;
|
|
26
26
|
getMessages(conversationId: number, userId: number): Promise<{
|
|
27
|
-
created_at: Date;
|
|
28
27
|
id: number;
|
|
29
|
-
updated_at: Date;
|
|
30
28
|
content: string;
|
|
31
29
|
role: import("@prisma/client").$Enums.mcp_conversation_message_role_422a6ea954_enum;
|
|
32
|
-
|
|
30
|
+
created_at: Date;
|
|
31
|
+
updated_at: Date;
|
|
33
32
|
conversation_id: number;
|
|
33
|
+
tool_name: string | null;
|
|
34
34
|
tool_call_id: string | null;
|
|
35
35
|
}[]>;
|
|
36
36
|
sendMessage(conversationId: number, userId: number, locale: string, message: string): Promise<{
|
|
37
|
-
created_at: Date;
|
|
38
37
|
id: number;
|
|
39
|
-
updated_at: Date;
|
|
40
38
|
content: string;
|
|
41
39
|
role: import("@prisma/client").$Enums.mcp_conversation_message_role_422a6ea954_enum;
|
|
42
|
-
|
|
40
|
+
created_at: Date;
|
|
41
|
+
updated_at: Date;
|
|
43
42
|
conversation_id: number;
|
|
43
|
+
tool_name: string | null;
|
|
44
44
|
tool_call_id: string | null;
|
|
45
45
|
}[]>;
|
|
46
46
|
private toOpenAiMessages;
|
|
@@ -41,42 +41,42 @@ export declare class MenuController {
|
|
|
41
41
|
code: string;
|
|
42
42
|
};
|
|
43
43
|
} & {
|
|
44
|
-
|
|
44
|
+
name: string;
|
|
45
45
|
id: number;
|
|
46
|
+
created_at: Date;
|
|
46
47
|
updated_at: Date;
|
|
47
|
-
name: string;
|
|
48
48
|
locale_id: number;
|
|
49
49
|
menu_id: number;
|
|
50
50
|
})[];
|
|
51
51
|
} & {
|
|
52
|
-
created_at: Date;
|
|
53
52
|
id: number;
|
|
53
|
+
url: string | null;
|
|
54
|
+
order: number;
|
|
55
|
+
created_at: Date;
|
|
54
56
|
updated_at: Date;
|
|
55
57
|
slug: string;
|
|
56
58
|
icon: string;
|
|
57
|
-
order: number;
|
|
58
|
-
url: string | null;
|
|
59
59
|
menu_id: number | null;
|
|
60
60
|
}>;
|
|
61
61
|
create(locale: any, data: CreateDTO): Promise<{
|
|
62
|
-
created_at: Date;
|
|
63
62
|
id: number;
|
|
63
|
+
url: string | null;
|
|
64
|
+
order: number;
|
|
65
|
+
created_at: Date;
|
|
64
66
|
updated_at: Date;
|
|
65
67
|
slug: string;
|
|
66
68
|
icon: string;
|
|
67
|
-
order: number;
|
|
68
|
-
url: string | null;
|
|
69
69
|
menu_id: number | null;
|
|
70
70
|
}>;
|
|
71
71
|
updateOrder(locale: any, data: OrderDTO): Promise<void>;
|
|
72
72
|
update(locale: any, menuId: number, data: UpdateDTO): Promise<{
|
|
73
|
-
created_at: Date;
|
|
74
73
|
id: number;
|
|
74
|
+
url: string | null;
|
|
75
|
+
order: number;
|
|
76
|
+
created_at: Date;
|
|
75
77
|
updated_at: Date;
|
|
76
78
|
slug: string;
|
|
77
79
|
icon: string;
|
|
78
|
-
order: number;
|
|
79
|
-
url: string | null;
|
|
80
80
|
menu_id: number | null;
|
|
81
81
|
}>;
|
|
82
82
|
delete(locale: any, data: DeleteDTO): Promise<{
|
|
@@ -55,44 +55,44 @@ export declare class MenuService {
|
|
|
55
55
|
code: string;
|
|
56
56
|
};
|
|
57
57
|
} & {
|
|
58
|
-
|
|
58
|
+
name: string;
|
|
59
59
|
id: number;
|
|
60
|
+
created_at: Date;
|
|
60
61
|
updated_at: Date;
|
|
61
|
-
name: string;
|
|
62
62
|
locale_id: number;
|
|
63
63
|
menu_id: number;
|
|
64
64
|
})[];
|
|
65
65
|
} & {
|
|
66
|
-
created_at: Date;
|
|
67
66
|
id: number;
|
|
67
|
+
url: string | null;
|
|
68
|
+
order: number;
|
|
69
|
+
created_at: Date;
|
|
68
70
|
updated_at: Date;
|
|
69
71
|
slug: string;
|
|
70
72
|
icon: string;
|
|
71
|
-
order: number;
|
|
72
|
-
url: string | null;
|
|
73
73
|
menu_id: number | null;
|
|
74
74
|
}>;
|
|
75
75
|
create(_locale: string, { slug, url, icon, order, menu_id, locale }: CreateDTO): Promise<{
|
|
76
|
-
created_at: Date;
|
|
77
76
|
id: number;
|
|
77
|
+
url: string | null;
|
|
78
|
+
order: number;
|
|
79
|
+
created_at: Date;
|
|
78
80
|
updated_at: Date;
|
|
79
81
|
slug: string;
|
|
80
82
|
icon: string;
|
|
81
|
-
order: number;
|
|
82
|
-
url: string | null;
|
|
83
83
|
menu_id: number | null;
|
|
84
84
|
}>;
|
|
85
85
|
update(locale: string, { id, data }: {
|
|
86
86
|
id: number;
|
|
87
87
|
data: UpdateDTO;
|
|
88
88
|
}): Promise<{
|
|
89
|
-
created_at: Date;
|
|
90
89
|
id: number;
|
|
90
|
+
url: string | null;
|
|
91
|
+
order: number;
|
|
92
|
+
created_at: Date;
|
|
91
93
|
updated_at: Date;
|
|
92
94
|
slug: string;
|
|
93
95
|
icon: string;
|
|
94
|
-
order: number;
|
|
95
|
-
url: string | null;
|
|
96
96
|
menu_id: number | null;
|
|
97
97
|
}>;
|
|
98
98
|
delete(locale: string, { ids }: DeleteDTO): Promise<{
|
|
@@ -104,12 +104,12 @@ export declare class ProfileController {
|
|
|
104
104
|
getEmailIdentifier({ id }: {
|
|
105
105
|
id: any;
|
|
106
106
|
}): Promise<{
|
|
107
|
+
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
108
|
+
id: number;
|
|
107
109
|
value: string;
|
|
108
110
|
created_at: Date;
|
|
109
|
-
id: number;
|
|
110
111
|
updated_at: Date;
|
|
111
112
|
user_id: number;
|
|
112
|
-
type: import("@prisma/client").$Enums.user_identifier_type_e66d505520_enum;
|
|
113
113
|
enabled: boolean;
|
|
114
114
|
verified_at: Date | null;
|
|
115
115
|
}>;
|
|
@@ -121,10 +121,10 @@ export declare class ProfileController {
|
|
|
121
121
|
getProfile({ id }: {
|
|
122
122
|
id: any;
|
|
123
123
|
}): Promise<{
|
|
124
|
-
|
|
124
|
+
name: string;
|
|
125
125
|
id: number;
|
|
126
|
+
created_at: Date;
|
|
126
127
|
updated_at: Date;
|
|
127
|
-
name: string;
|
|
128
128
|
photo_id: number | null;
|
|
129
129
|
suspended_until: Date | null;
|
|
130
130
|
last_login_at: Date | null;
|
|
@@ -135,22 +135,22 @@ export declare class ProfileController {
|
|
|
135
135
|
id: any;
|
|
136
136
|
}): Promise<({
|
|
137
137
|
user_mfa_email: {
|
|
138
|
-
created_at: Date;
|
|
139
138
|
id: number;
|
|
140
|
-
updated_at: Date;
|
|
141
139
|
email: string;
|
|
140
|
+
created_at: Date;
|
|
141
|
+
updated_at: Date;
|
|
142
142
|
user_mfa_id: number;
|
|
143
143
|
}[];
|
|
144
144
|
user_mfa_totp: {
|
|
145
|
-
created_at: Date;
|
|
146
145
|
id: number;
|
|
147
|
-
updated_at: Date;
|
|
148
146
|
secret: import("@prisma/client/runtime/library").Bytes;
|
|
147
|
+
created_at: Date;
|
|
148
|
+
updated_at: Date;
|
|
149
149
|
user_mfa_id: number;
|
|
150
150
|
}[];
|
|
151
151
|
user_mfa_webauthn: {
|
|
152
|
-
created_at: Date;
|
|
153
152
|
id: number;
|
|
153
|
+
created_at: Date;
|
|
154
154
|
updated_at: Date;
|
|
155
155
|
user_mfa_id: number;
|
|
156
156
|
credential_id: import("@prisma/client/runtime/library").Bytes;
|
|
@@ -159,24 +159,24 @@ export declare class ProfileController {
|
|
|
159
159
|
last_used_at: Date | null;
|
|
160
160
|
}[];
|
|
161
161
|
} & {
|
|
162
|
-
|
|
162
|
+
name: string;
|
|
163
|
+
type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
|
|
163
164
|
id: number;
|
|
165
|
+
created_at: Date;
|
|
164
166
|
updated_at: Date;
|
|
165
167
|
user_id: number;
|
|
166
|
-
name: string;
|
|
167
|
-
type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
|
|
168
168
|
suspended_until: Date | null;
|
|
169
169
|
verified_at: Date | null;
|
|
170
170
|
})[]>;
|
|
171
171
|
updateMFA({ id: userId }: {
|
|
172
172
|
id: any;
|
|
173
173
|
}, mfaId: number, { name }: UpdateDto): Promise<{
|
|
174
|
-
|
|
174
|
+
name: string;
|
|
175
|
+
type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
|
|
175
176
|
id: number;
|
|
177
|
+
created_at: Date;
|
|
176
178
|
updated_at: Date;
|
|
177
179
|
user_id: number;
|
|
178
|
-
name: string;
|
|
179
|
-
type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
|
|
180
180
|
suspended_until: Date | null;
|
|
181
181
|
verified_at: Date | null;
|
|
182
182
|
}>;
|
|
@@ -257,10 +257,10 @@ export declare class ProfileController {
|
|
|
257
257
|
update(data: UpdateDto, { id }: {
|
|
258
258
|
id: any;
|
|
259
259
|
}): Promise<{
|
|
260
|
-
|
|
260
|
+
name: string;
|
|
261
261
|
id: number;
|
|
262
|
+
created_at: Date;
|
|
262
263
|
updated_at: Date;
|
|
263
|
-
name: string;
|
|
264
264
|
photo_id: number | null;
|
|
265
265
|
suspended_until: Date | null;
|
|
266
266
|
last_login_at: Date | null;
|
|
@@ -45,20 +45,20 @@ export declare class ProfileService {
|
|
|
45
45
|
challengeId: number;
|
|
46
46
|
}>;
|
|
47
47
|
getEmailIdentifier(userId: number): Promise<{
|
|
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
|
getProfile(userId: number): Promise<{
|
|
58
|
-
|
|
58
|
+
name: string;
|
|
59
59
|
id: number;
|
|
60
|
+
created_at: Date;
|
|
60
61
|
updated_at: Date;
|
|
61
|
-
name: string;
|
|
62
62
|
photo_id: number | null;
|
|
63
63
|
suspended_until: Date | null;
|
|
64
64
|
last_login_at: Date | null;
|
|
@@ -67,22 +67,22 @@ export declare class ProfileService {
|
|
|
67
67
|
}>;
|
|
68
68
|
getMFAMethods(userId: number): Promise<({
|
|
69
69
|
user_mfa_email: {
|
|
70
|
-
created_at: Date;
|
|
71
70
|
id: number;
|
|
72
|
-
updated_at: Date;
|
|
73
71
|
email: string;
|
|
72
|
+
created_at: Date;
|
|
73
|
+
updated_at: Date;
|
|
74
74
|
user_mfa_id: number;
|
|
75
75
|
}[];
|
|
76
76
|
user_mfa_totp: {
|
|
77
|
-
created_at: Date;
|
|
78
77
|
id: number;
|
|
79
|
-
updated_at: Date;
|
|
80
78
|
secret: import("@prisma/client/runtime/library").Bytes;
|
|
79
|
+
created_at: Date;
|
|
80
|
+
updated_at: Date;
|
|
81
81
|
user_mfa_id: number;
|
|
82
82
|
}[];
|
|
83
83
|
user_mfa_webauthn: {
|
|
84
|
-
created_at: Date;
|
|
85
84
|
id: number;
|
|
85
|
+
created_at: Date;
|
|
86
86
|
updated_at: Date;
|
|
87
87
|
user_mfa_id: number;
|
|
88
88
|
credential_id: import("@prisma/client/runtime/library").Bytes;
|
|
@@ -91,30 +91,30 @@ export declare class ProfileService {
|
|
|
91
91
|
last_used_at: Date | null;
|
|
92
92
|
}[];
|
|
93
93
|
} & {
|
|
94
|
-
|
|
94
|
+
name: string;
|
|
95
|
+
type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
|
|
95
96
|
id: number;
|
|
97
|
+
created_at: Date;
|
|
96
98
|
updated_at: Date;
|
|
97
99
|
user_id: number;
|
|
98
|
-
name: string;
|
|
99
|
-
type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
|
|
100
100
|
suspended_until: Date | null;
|
|
101
101
|
verified_at: Date | null;
|
|
102
102
|
})[]>;
|
|
103
103
|
updateMFA(userId: number, mfaId: number, { name }: UpdateDto): Promise<{
|
|
104
|
-
|
|
104
|
+
name: string;
|
|
105
|
+
type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
|
|
105
106
|
id: number;
|
|
107
|
+
created_at: Date;
|
|
106
108
|
updated_at: Date;
|
|
107
109
|
user_id: number;
|
|
108
|
-
name: string;
|
|
109
|
-
type: import("@prisma/client").$Enums.user_mfa_type_4ce08a626e_enum;
|
|
110
110
|
suspended_until: Date | null;
|
|
111
111
|
verified_at: Date | null;
|
|
112
112
|
}>;
|
|
113
113
|
update(userid: number, { name }: UpdateDto): Promise<{
|
|
114
|
-
|
|
114
|
+
name: string;
|
|
115
115
|
id: number;
|
|
116
|
+
created_at: Date;
|
|
116
117
|
updated_at: Date;
|
|
117
|
-
name: string;
|
|
118
118
|
photo_id: number | null;
|
|
119
119
|
suspended_until: Date | null;
|
|
120
120
|
last_login_at: Date | null;
|
|
@@ -73,16 +73,16 @@ export declare class RoleController {
|
|
|
73
73
|
code: string;
|
|
74
74
|
};
|
|
75
75
|
} & {
|
|
76
|
-
|
|
76
|
+
name: string;
|
|
77
77
|
id: number;
|
|
78
|
+
description: string | null;
|
|
79
|
+
created_at: Date;
|
|
78
80
|
updated_at: Date;
|
|
79
|
-
name: string;
|
|
80
81
|
locale_id: number;
|
|
81
|
-
description: string | null;
|
|
82
82
|
role_id: number;
|
|
83
83
|
})[];
|
|
84
|
-
created_at: Date;
|
|
85
84
|
id: number;
|
|
85
|
+
created_at: Date;
|
|
86
86
|
updated_at: Date;
|
|
87
87
|
slug: string;
|
|
88
88
|
}>;
|
|
@@ -96,16 +96,16 @@ export declare class RoleController {
|
|
|
96
96
|
code: string;
|
|
97
97
|
};
|
|
98
98
|
} & {
|
|
99
|
-
|
|
99
|
+
name: string;
|
|
100
100
|
id: number;
|
|
101
|
+
description: string | null;
|
|
102
|
+
created_at: Date;
|
|
101
103
|
updated_at: Date;
|
|
102
|
-
name: string;
|
|
103
104
|
locale_id: number;
|
|
104
|
-
description: string | null;
|
|
105
105
|
role_id: number;
|
|
106
106
|
})[];
|
|
107
|
-
created_at: Date;
|
|
108
107
|
id: number;
|
|
108
|
+
created_at: Date;
|
|
109
109
|
updated_at: Date;
|
|
110
110
|
slug: string;
|
|
111
111
|
}>;
|
|
@@ -119,16 +119,16 @@ export declare class RoleController {
|
|
|
119
119
|
code: string;
|
|
120
120
|
};
|
|
121
121
|
} & {
|
|
122
|
-
|
|
122
|
+
name: string;
|
|
123
123
|
id: number;
|
|
124
|
+
description: string | null;
|
|
125
|
+
created_at: Date;
|
|
124
126
|
updated_at: Date;
|
|
125
|
-
name: string;
|
|
126
127
|
locale_id: number;
|
|
127
|
-
description: string | null;
|
|
128
128
|
role_id: number;
|
|
129
129
|
})[];
|
|
130
|
-
created_at: Date;
|
|
131
130
|
id: number;
|
|
131
|
+
created_at: Date;
|
|
132
132
|
updated_at: Date;
|
|
133
133
|
slug: string;
|
|
134
134
|
}>;
|
|
@@ -79,16 +79,16 @@ export declare class RoleService {
|
|
|
79
79
|
code: string;
|
|
80
80
|
};
|
|
81
81
|
} & {
|
|
82
|
-
|
|
82
|
+
name: string;
|
|
83
83
|
id: number;
|
|
84
|
+
description: string | null;
|
|
85
|
+
created_at: Date;
|
|
84
86
|
updated_at: Date;
|
|
85
|
-
name: string;
|
|
86
87
|
locale_id: number;
|
|
87
|
-
description: string | null;
|
|
88
88
|
role_id: number;
|
|
89
89
|
})[];
|
|
90
|
-
created_at: Date;
|
|
91
90
|
id: number;
|
|
91
|
+
created_at: Date;
|
|
92
92
|
updated_at: Date;
|
|
93
93
|
slug: string;
|
|
94
94
|
}>;
|
|
@@ -102,16 +102,16 @@ export declare class RoleService {
|
|
|
102
102
|
code: string;
|
|
103
103
|
};
|
|
104
104
|
} & {
|
|
105
|
-
|
|
105
|
+
name: string;
|
|
106
106
|
id: number;
|
|
107
|
+
description: string | null;
|
|
108
|
+
created_at: Date;
|
|
107
109
|
updated_at: Date;
|
|
108
|
-
name: string;
|
|
109
110
|
locale_id: number;
|
|
110
|
-
description: string | null;
|
|
111
111
|
role_id: number;
|
|
112
112
|
})[];
|
|
113
|
-
created_at: Date;
|
|
114
113
|
id: number;
|
|
114
|
+
created_at: Date;
|
|
115
115
|
updated_at: Date;
|
|
116
116
|
slug: string;
|
|
117
117
|
}>;
|
|
@@ -125,16 +125,16 @@ export declare class RoleService {
|
|
|
125
125
|
code: string;
|
|
126
126
|
};
|
|
127
127
|
} & {
|
|
128
|
-
|
|
128
|
+
name: string;
|
|
129
129
|
id: number;
|
|
130
|
+
description: string | null;
|
|
131
|
+
created_at: Date;
|
|
130
132
|
updated_at: Date;
|
|
131
|
-
name: string;
|
|
132
133
|
locale_id: number;
|
|
133
|
-
description: string | null;
|
|
134
134
|
role_id: number;
|
|
135
135
|
})[];
|
|
136
|
-
created_at: Date;
|
|
137
136
|
id: number;
|
|
137
|
+
created_at: Date;
|
|
138
138
|
updated_at: Date;
|
|
139
139
|
slug: string;
|
|
140
140
|
}>;
|
|
@@ -40,22 +40,22 @@ export declare class ScreenController {
|
|
|
40
40
|
count: number;
|
|
41
41
|
}>;
|
|
42
42
|
show(screenId: number): Promise<{
|
|
43
|
-
created_at: Date;
|
|
44
43
|
id: number;
|
|
44
|
+
created_at: Date;
|
|
45
45
|
updated_at: Date;
|
|
46
46
|
slug: string;
|
|
47
47
|
icon: string | null;
|
|
48
48
|
}>;
|
|
49
49
|
create(data: CreateDTO): Promise<{
|
|
50
|
-
created_at: Date;
|
|
51
50
|
id: number;
|
|
51
|
+
created_at: Date;
|
|
52
52
|
updated_at: Date;
|
|
53
53
|
slug: string;
|
|
54
54
|
icon: string | null;
|
|
55
55
|
}>;
|
|
56
56
|
update(screenId: number, data: UpdateDTO): Promise<{
|
|
57
|
-
created_at: Date;
|
|
58
57
|
id: number;
|
|
58
|
+
created_at: Date;
|
|
59
59
|
updated_at: Date;
|
|
60
60
|
slug: string;
|
|
61
61
|
icon: string | null;
|
|
@@ -42,15 +42,15 @@ export declare class ScreenService {
|
|
|
42
42
|
data: any[];
|
|
43
43
|
}>;
|
|
44
44
|
get(screenId: number): Promise<{
|
|
45
|
-
created_at: Date;
|
|
46
45
|
id: number;
|
|
46
|
+
created_at: Date;
|
|
47
47
|
updated_at: Date;
|
|
48
48
|
slug: string;
|
|
49
49
|
icon: string | null;
|
|
50
50
|
}>;
|
|
51
51
|
create({ slug, icon }: CreateDTO): Promise<{
|
|
52
|
-
created_at: Date;
|
|
53
52
|
id: number;
|
|
53
|
+
created_at: Date;
|
|
54
54
|
updated_at: Date;
|
|
55
55
|
slug: string;
|
|
56
56
|
icon: string | null;
|
|
@@ -59,8 +59,8 @@ export declare class ScreenService {
|
|
|
59
59
|
id: number;
|
|
60
60
|
data: UpdateDTO;
|
|
61
61
|
}): Promise<{
|
|
62
|
-
created_at: Date;
|
|
63
62
|
id: number;
|
|
63
|
+
created_at: Date;
|
|
64
64
|
updated_at: Date;
|
|
65
65
|
slug: string;
|
|
66
66
|
icon: string | null;
|
|
@@ -30,15 +30,15 @@ export declare class SessionController {
|
|
|
30
30
|
revokeSession({ id: userId }: {
|
|
31
31
|
id: any;
|
|
32
32
|
}, sessionId: number, locale: string): Promise<{
|
|
33
|
-
created_at: Date;
|
|
34
33
|
id: number;
|
|
35
|
-
updated_at: Date;
|
|
36
|
-
user_id: number;
|
|
37
34
|
hash: string;
|
|
35
|
+
created_at: Date;
|
|
36
|
+
updated_at: Date;
|
|
38
37
|
ip_address: string;
|
|
39
38
|
user_agent: string;
|
|
40
|
-
|
|
39
|
+
user_id: number;
|
|
41
40
|
expires_at: Date;
|
|
41
|
+
revoked_at: Date | null;
|
|
42
42
|
}>;
|
|
43
43
|
}
|
|
44
44
|
//# sourceMappingURL=session.controller.d.ts.map
|
|
@@ -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.
|