@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.
Files changed (60) hide show
  1. package/dist/ai/ai.service.d.ts +1 -1
  2. package/dist/auth/auth.controller.d.ts +23 -23
  3. package/dist/auth/auth.service.d.ts +41 -41
  4. package/dist/challenge/challenge.service.d.ts +14 -14
  5. package/dist/core/system.controller.d.ts +2 -2
  6. package/dist/core/system.service.d.ts +2 -2
  7. package/dist/dashboard/dashboard/dashboard.controller.d.ts +87 -87
  8. package/dist/dashboard/dashboard/dashboard.service.d.ts +87 -87
  9. package/dist/dashboard/dashboard-component/dashboard-component.controller.d.ts +33 -33
  10. package/dist/dashboard/dashboard-component/dashboard-component.service.d.ts +33 -33
  11. package/dist/dashboard/dashboard-component-role/dashboard-component-role.controller.d.ts +42 -42
  12. package/dist/dashboard/dashboard-component-role/dashboard-component-role.service.d.ts +42 -42
  13. package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +12 -12
  14. package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +12 -12
  15. package/dist/dashboard/dashboard-item/dashboard-item.controller.d.ts +7 -7
  16. package/dist/dashboard/dashboard-item/dashboard-item.service.d.ts +7 -7
  17. package/dist/dashboard/dashboard-role/dashboard-role.controller.d.ts +33 -33
  18. package/dist/dashboard/dashboard-role/dashboard-role.service.d.ts +33 -33
  19. package/dist/dashboard/dashboard-user/dashboard-user.controller.d.ts +3 -3
  20. package/dist/dashboard/dashboard-user/dashboard-user.service.d.ts +3 -3
  21. package/dist/file/file.controller.d.ts +8 -8
  22. package/dist/file/file.service.d.ts +18 -18
  23. package/dist/mail/mail.controller.d.ts +15 -15
  24. package/dist/mail/mail.service.d.ts +15 -15
  25. package/dist/mail-profile/mail-profile.controller.d.ts +9 -9
  26. package/dist/mail-profile/mail-profile.service.d.ts +9 -9
  27. package/dist/mail-sent/mail-sent.controller.d.ts +17 -17
  28. package/dist/mail-sent/mail-sent.service.d.ts +17 -17
  29. package/dist/mcp-chat/mcp-chat.controller.d.ts +10 -10
  30. package/dist/mcp-chat/mcp-chat.service.d.ts +10 -10
  31. package/dist/menu/menu.controller.d.ts +11 -11
  32. package/dist/menu/menu.service.d.ts +11 -11
  33. package/dist/profile/profile.controller.d.ts +17 -17
  34. package/dist/profile/profile.service.d.ts +17 -17
  35. package/dist/role/role.controller.d.ts +12 -12
  36. package/dist/role/role.service.d.ts +12 -12
  37. package/dist/route/route.service.d.ts.map +1 -1
  38. package/dist/route/route.service.js +14 -0
  39. package/dist/route/route.service.js.map +1 -1
  40. package/dist/screen/screen.controller.d.ts +3 -3
  41. package/dist/screen/screen.service.d.ts +3 -3
  42. package/dist/session/session.controller.d.ts +4 -4
  43. package/dist/session/session.service.d.ts +12 -12
  44. package/dist/setting/setting.controller.d.ts +13 -13
  45. package/dist/setting/setting.service.d.ts +13 -13
  46. package/dist/user/user.controller.d.ts +24 -24
  47. package/dist/user/user.service.d.ts +55 -55
  48. package/hedhog/data/menu.yaml +18 -4
  49. package/hedhog/frontend/app/account/layout.tsx.ejs +1 -1
  50. package/hedhog/frontend/app/configurations/[slug]/components/setting-field.tsx.ejs +27 -23
  51. package/hedhog/frontend/app/mail/template/page.tsx.ejs +5 -5
  52. package/hedhog/frontend/app/menu/page.tsx.ejs +7 -2
  53. package/hedhog/frontend/app/preferences/page.tsx.ejs +1 -1
  54. package/hedhog/frontend/app/roles/page.tsx.ejs +7 -2
  55. package/hedhog/frontend/app/routes/page.tsx.ejs +1339 -0
  56. package/hedhog/frontend/app/users/page.tsx.ejs +1 -1
  57. package/hedhog/frontend/messages/en.json +108 -1
  58. package/hedhog/frontend/messages/pt.json +108 -1
  59. package/package.json +5 -5
  60. package/src/route/route.service.ts +14 -0
@@ -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
- tool_name: string | null;
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
- tool_name: string | null;
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
- tool_name: string | null;
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
- tool_name: string | null;
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
- created_at: Date;
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
- created_at: Date;
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
- created_at: Date;
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
- created_at: Date;
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
- created_at: Date;
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
- created_at: Date;
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
- created_at: Date;
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
- created_at: Date;
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
- created_at: Date;
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
- created_at: Date;
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
- created_at: Date;
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
- created_at: Date;
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
- created_at: Date;
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
- created_at: Date;
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
- created_at: Date;
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
- created_at: Date;
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
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"route.service.d.ts","sourceRoot":"","sources":["../../src/route/route.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,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,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAUlD,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAa,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IA2BhG,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAgBnF,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,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,MAAM,EAAE,IAAa,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IA2BhG,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAgBnF,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC;QAAC,KAAK,EAAC,MAAM,CAAA;KAAC,CAAC;IAyBlE,SAAS,CACb,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,aAAa;;;;;;;;;IAiC3B,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAE,OAAO,CAAC;QAAC,KAAK,EAAC,MAAM,CAAA;KAAC,CAAC;IAgBxE,WAAW,CACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,aAAa;;;;;;;;;IAgC3B,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAE,OAAO,CAAC;QAAC,KAAK,EAAC,MAAM,CAAA;KAAC,CAAC;CAejF"}
@@ -29,6 +29,20 @@ let RouteService = class RouteService {
29
29
  where: {
30
30
  OR,
31
31
  },
32
+ include: {
33
+ role_route: {
34
+ select: {
35
+ route_id: true,
36
+ role_id: true,
37
+ },
38
+ },
39
+ route_screen: {
40
+ select: {
41
+ route_id: true,
42
+ screen_id: true,
43
+ },
44
+ },
45
+ },
32
46
  });
33
47
  }
34
48
  async get(routeId, locale) {
@@ -1 +1 @@
1
- {"version":3,"file":"route.service.js","sourceRoot":"","sources":["../../src/route/route.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oDAAoD;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ACF;gBACD,YAAY,EAAE;oBACZ,KAAK,EAAE;wBACL,QAAQ,EAAE,OAAO;qBAClB;oBACD,MAAM,EAAE;wBACN,QAAQ,EAAE,IAAI;wBACd,SAAS,EAAE,IAAI;qBAChB;iBACF;aACF;SACF,EACD,eAAe,CAChB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,OAAe,EAAE,IAAkB;QACrD,MAAM,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,UAAU,CAAC;YAC/C,KAAK,EAAE;gBACL,QAAQ,EAAE,OAAO;aAClB;SACF,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,UAAU,CAAC;YAChD,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;gBAChC,SAAS,EAAE,QAAQ;gBACnB,QAAQ,EAAE,OAAO;aAClB,CAAC,CAAC;YACH,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA7NY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAa,CAAC,CAAC,CAAA;IAEvC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,kCAAiB,CAAC,CAAC,CAAA;qCADZ,0BAAa;QAET,kCAAiB;GAL5C,YAAY,CA6NxB"}
@@ -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
- revoked_at: Date | null;
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