@hed-hog/core 0.0.291 → 0.0.293

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 (37) hide show
  1. package/dist/auth/auth.controller.d.ts +5 -5
  2. package/dist/auth/auth.service.d.ts +5 -5
  3. package/dist/challenge/challenge.service.d.ts +2 -2
  4. package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +1 -1
  5. package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +2 -2
  6. package/dist/install/dto/install.dto.d.ts +2 -0
  7. package/dist/install/dto/install.dto.d.ts.map +1 -1
  8. package/dist/install/dto/install.dto.js +12 -0
  9. package/dist/install/dto/install.dto.js.map +1 -1
  10. package/dist/install/install.controller.d.ts +1 -0
  11. package/dist/install/install.controller.d.ts.map +1 -1
  12. package/dist/install/install.service.d.ts +6 -2
  13. package/dist/install/install.service.d.ts.map +1 -1
  14. package/dist/install/install.service.js +52 -4
  15. package/dist/install/install.service.js.map +1 -1
  16. package/dist/profile/profile.controller.d.ts +6 -6
  17. package/dist/profile/profile.service.d.ts +6 -6
  18. package/dist/session/session.controller.d.ts +2 -2
  19. package/dist/session/session.service.d.ts +3 -3
  20. package/dist/setting/setting.controller.d.ts +9 -9
  21. package/dist/setting/setting.service.d.ts +10 -10
  22. package/dist/user/user.controller.d.ts +6 -6
  23. package/dist/user/user.service.d.ts +12 -12
  24. package/hedhog/data/dashboard_component_role.yaml +223 -223
  25. package/hedhog/data/dashboard_role.yaml +18 -18
  26. package/hedhog/data/setting_group.yaml +11 -0
  27. package/hedhog/frontend/app/dashboard/[slug]/dashboard-content.tsx.ejs +0 -2
  28. package/hedhog/frontend/app/dashboard/components/widgets/permissions-chart.tsx.ejs +62 -62
  29. package/hedhog/frontend/app/dashboard/page.tsx.ejs +29 -29
  30. package/hedhog/frontend/app/mail/template/page.tsx.ejs +17 -2
  31. package/package.json +7 -7
  32. package/src/ai/ai.service.ts +3 -3
  33. package/src/auth/auth.controller.ts +11 -11
  34. package/src/auth/auth.service.ts +8 -8
  35. package/src/install/dto/install.dto.ts +15 -1
  36. package/src/install/install.service.ts +67 -3
  37. package/src/task/task.service.ts +5 -5
@@ -61,24 +61,24 @@ export declare class SettingService {
61
61
  }>;
62
62
  get(settingId: number): Promise<{
63
63
  value: string | null;
64
- type: import("@prisma/client").$Enums.setting_type_enum;
64
+ type: import(".prisma/client").$Enums.setting_type_enum;
65
65
  id: number;
66
66
  created_at: Date;
67
67
  updated_at: Date;
68
68
  slug: string;
69
69
  group_id: number;
70
- component: import("@prisma/client").$Enums.setting_component_enum;
70
+ component: import(".prisma/client").$Enums.setting_component_enum;
71
71
  user_override: boolean;
72
72
  }>;
73
73
  create(data: CreateDTO, _locale: string): Promise<{
74
74
  value: string | null;
75
- type: import("@prisma/client").$Enums.setting_type_enum;
75
+ type: import(".prisma/client").$Enums.setting_type_enum;
76
76
  id: number;
77
77
  created_at: Date;
78
78
  updated_at: Date;
79
79
  slug: string;
80
80
  group_id: number;
81
- component: import("@prisma/client").$Enums.setting_component_enum;
81
+ component: import(".prisma/client").$Enums.setting_component_enum;
82
82
  user_override: boolean;
83
83
  }>;
84
84
  update({ id, data }: {
@@ -86,29 +86,29 @@ export declare class SettingService {
86
86
  data: UpdateDTO;
87
87
  }): Promise<{
88
88
  value: string | null;
89
- type: import("@prisma/client").$Enums.setting_type_enum;
89
+ type: import(".prisma/client").$Enums.setting_type_enum;
90
90
  id: number;
91
91
  created_at: Date;
92
92
  updated_at: Date;
93
93
  slug: string;
94
94
  group_id: number;
95
- component: import("@prisma/client").$Enums.setting_component_enum;
95
+ component: import(".prisma/client").$Enums.setting_component_enum;
96
96
  user_override: boolean;
97
97
  }>;
98
98
  updateFromSlug(slug: string, data: UpdateDTO): Promise<{
99
99
  value: string | null;
100
- type: import("@prisma/client").$Enums.setting_type_enum;
100
+ type: import(".prisma/client").$Enums.setting_type_enum;
101
101
  id: number;
102
102
  created_at: Date;
103
103
  updated_at: Date;
104
104
  slug: string;
105
105
  group_id: number;
106
- component: import("@prisma/client").$Enums.setting_component_enum;
106
+ component: import(".prisma/client").$Enums.setting_component_enum;
107
107
  user_override: boolean;
108
108
  }>;
109
109
  setValueFormattedByType(type: string, value: any): any;
110
110
  getValueFormattedByType(type: string, value: any): any;
111
- delete(locale: string, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
111
+ delete(locale: string, { ids }: DeleteDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
112
112
  setSettingUserValue(locale: string, user_id: number, slug: string, value: string): Promise<{
113
113
  value: string;
114
114
  user_id: number;
@@ -129,6 +129,6 @@ export declare class SettingService {
129
129
  user_id: number;
130
130
  setting_id: number;
131
131
  })[]>;
132
- setValue(slug: string, value: string): Promise<import("@prisma/client").Prisma.BatchPayload>;
132
+ setValue(slug: string, value: string): Promise<import(".prisma/client").Prisma.BatchPayload>;
133
133
  }
134
134
  //# sourceMappingURL=setting.service.d.ts.map
@@ -23,14 +23,14 @@ export declare class UserController {
23
23
  get(userId: number, locale: string): Promise<{
24
24
  user_account: {
25
25
  id: number;
26
- provider: import("@prisma/client").$Enums.user_account_provider_enum;
26
+ provider: import(".prisma/client").$Enums.user_account_provider_enum;
27
27
  created_at: Date;
28
28
  updated_at: Date;
29
29
  email: string | null;
30
30
  user_id: number;
31
31
  provider_user_id: string;
32
32
  scopes: string | null;
33
- refresh_token: import("@prisma/client/runtime/library").Bytes | null;
33
+ refresh_token: import(".prisma/client/runtime/library").Bytes | null;
34
34
  token_expires_at: Date | null;
35
35
  }[];
36
36
  user_activity: {
@@ -41,7 +41,7 @@ export declare class UserController {
41
41
  user_id: number;
42
42
  }[];
43
43
  user_credential: {
44
- type: import("@prisma/client").$Enums.user_credential_type_enum;
44
+ type: import(".prisma/client").$Enums.user_credential_type_enum;
45
45
  id: number;
46
46
  hash: string;
47
47
  created_at: Date;
@@ -53,7 +53,7 @@ export declare class UserController {
53
53
  }[];
54
54
  user_identifier: {
55
55
  value: string;
56
- type: import("@prisma/client").$Enums.user_identifier_type_enum;
56
+ type: import(".prisma/client").$Enums.user_identifier_type_enum;
57
57
  id: number;
58
58
  created_at: Date;
59
59
  updated_at: Date;
@@ -121,7 +121,7 @@ export declare class UserController {
121
121
  }>;
122
122
  verifyIdentifier(locale: string, userId: number, identifierId: number): Promise<{
123
123
  value: string;
124
- type: import("@prisma/client").$Enums.user_identifier_type_enum;
124
+ type: import(".prisma/client").$Enums.user_identifier_type_enum;
125
125
  id: number;
126
126
  created_at: Date;
127
127
  updated_at: Date;
@@ -129,7 +129,7 @@ export declare class UserController {
129
129
  enabled: boolean;
130
130
  verified_at: Date | null;
131
131
  }>;
132
- delete(data: DeleteDTO, locale: string): Promise<import("@prisma/client").Prisma.BatchPayload>;
132
+ delete(data: DeleteDTO, locale: string): Promise<import(".prisma/client").Prisma.BatchPayload>;
133
133
  getUserRoles(userId: number): Promise<{
134
134
  id: any;
135
135
  slug: any;
@@ -19,7 +19,7 @@ export declare class UserService {
19
19
  private validateEmailAvailable;
20
20
  verifyIdentifier(locale: string, userId: number, identifierId: number): Promise<{
21
21
  value: string;
22
- type: import("@prisma/client").$Enums.user_identifier_type_enum;
22
+ type: import(".prisma/client").$Enums.user_identifier_type_enum;
23
23
  id: number;
24
24
  created_at: Date;
25
25
  updated_at: Date;
@@ -44,14 +44,14 @@ export declare class UserService {
44
44
  get(locale: string, userId: number): Promise<{
45
45
  user_account: {
46
46
  id: number;
47
- provider: import("@prisma/client").$Enums.user_account_provider_enum;
47
+ provider: import(".prisma/client").$Enums.user_account_provider_enum;
48
48
  created_at: Date;
49
49
  updated_at: Date;
50
50
  email: string | null;
51
51
  user_id: number;
52
52
  provider_user_id: string;
53
53
  scopes: string | null;
54
- refresh_token: import("@prisma/client/runtime/library").Bytes | null;
54
+ refresh_token: import(".prisma/client/runtime/library").Bytes | null;
55
55
  token_expires_at: Date | null;
56
56
  }[];
57
57
  user_activity: {
@@ -62,7 +62,7 @@ export declare class UserService {
62
62
  user_id: number;
63
63
  }[];
64
64
  user_credential: {
65
- type: import("@prisma/client").$Enums.user_credential_type_enum;
65
+ type: import(".prisma/client").$Enums.user_credential_type_enum;
66
66
  id: number;
67
67
  hash: string;
68
68
  created_at: Date;
@@ -74,7 +74,7 @@ export declare class UserService {
74
74
  }[];
75
75
  user_identifier: {
76
76
  value: string;
77
- type: import("@prisma/client").$Enums.user_identifier_type_enum;
77
+ type: import(".prisma/client").$Enums.user_identifier_type_enum;
78
78
  id: number;
79
79
  created_at: Date;
80
80
  updated_at: Date;
@@ -135,7 +135,7 @@ export declare class UserService {
135
135
  password: string;
136
136
  requiresReset: boolean;
137
137
  }>;
138
- delete(locale: string, { ids }: DeleteDTO): Promise<import("@prisma/client").Prisma.BatchPayload>;
138
+ delete(locale: string, { ids }: DeleteDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
139
139
  changeAvatar(locale: string, userId: number, avatar: MulterFile): Promise<{
140
140
  id: number;
141
141
  path: string;
@@ -144,14 +144,14 @@ export declare class UserService {
144
144
  findUserById(locale: string, id: number): Promise<{
145
145
  user_account: {
146
146
  id: number;
147
- provider: import("@prisma/client").$Enums.user_account_provider_enum;
147
+ provider: import(".prisma/client").$Enums.user_account_provider_enum;
148
148
  created_at: Date;
149
149
  updated_at: Date;
150
150
  email: string | null;
151
151
  user_id: number;
152
152
  provider_user_id: string;
153
153
  scopes: string | null;
154
- refresh_token: import("@prisma/client/runtime/library").Bytes | null;
154
+ refresh_token: import(".prisma/client/runtime/library").Bytes | null;
155
155
  token_expires_at: Date | null;
156
156
  }[];
157
157
  user_activity: {
@@ -162,7 +162,7 @@ export declare class UserService {
162
162
  user_id: number;
163
163
  }[];
164
164
  user_credential: {
165
- type: import("@prisma/client").$Enums.user_credential_type_enum;
165
+ type: import(".prisma/client").$Enums.user_credential_type_enum;
166
166
  id: number;
167
167
  hash: string;
168
168
  created_at: Date;
@@ -174,7 +174,7 @@ export declare class UserService {
174
174
  }[];
175
175
  user_identifier: {
176
176
  value: string;
177
- type: import("@prisma/client").$Enums.user_identifier_type_enum;
177
+ type: import(".prisma/client").$Enums.user_identifier_type_enum;
178
178
  id: number;
179
179
  created_at: Date;
180
180
  updated_at: Date;
@@ -206,7 +206,7 @@ export declare class UserService {
206
206
  }>;
207
207
  findUserByEmail(_locale: string, email: string): Promise<{
208
208
  user_credential: {
209
- type: import("@prisma/client").$Enums.user_credential_type_enum;
209
+ type: import(".prisma/client").$Enums.user_credential_type_enum;
210
210
  id: number;
211
211
  hash: string;
212
212
  created_at: Date;
@@ -218,7 +218,7 @@ export declare class UserService {
218
218
  }[];
219
219
  user_identifier: {
220
220
  value: string;
221
- type: import("@prisma/client").$Enums.user_identifier_type_enum;
221
+ type: import(".prisma/client").$Enums.user_identifier_type_enum;
222
222
  id: number;
223
223
  created_at: Date;
224
224
  updated_at: Date;
@@ -1,223 +1,223 @@
1
- - component_id:
2
- where:
3
- slug: active-users-card
4
- role_id:
5
- where:
6
- slug: admin-access
7
- - component_id:
8
- where:
9
- slug: mail-sent-card
10
- role_id:
11
- where:
12
- slug: admin-access
13
- - component_id:
14
- where:
15
- slug: mail-sent-chart
16
- role_id:
17
- where:
18
- slug: admin-access
19
- - component_id:
20
- where:
21
- slug: permissions-card
22
- role_id:
23
- where:
24
- slug: admin-access
25
- - component_id:
26
- where:
27
- slug: permissions-chart
28
- role_id:
29
- where:
30
- slug: admin-access
31
- - component_id:
32
- where:
33
- slug: session-activity-chart
34
- role_id:
35
- where:
36
- slug: admin-access
37
- - component_id:
38
- where:
39
- slug: sessions-today-card
40
- role_id:
41
- where:
42
- slug: admin-access
43
- - component_id:
44
- where:
45
- slug: menus-card
46
- role_id:
47
- where:
48
- slug: admin-access
49
- - component_id:
50
- where:
51
- slug: routes-card
52
- role_id:
53
- where:
54
- slug: admin-access
55
- - component_id:
56
- where:
57
- slug: user-growth-chart
58
- role_id:
59
- where:
60
- slug: admin-access
61
- - component_id:
62
- where:
63
- slug: account-security
64
- role_id:
65
- where:
66
- slug: user
67
- - component_id:
68
- where:
69
- slug: account-security
70
- role_id:
71
- where:
72
- slug: admin-access
73
- - component_id:
74
- where:
75
- slug: activity-timeline
76
- role_id:
77
- where:
78
- slug: user
79
- - component_id:
80
- where:
81
- slug: activity-timeline
82
- role_id:
83
- where:
84
- slug: admin-access
85
- - component_id:
86
- where:
87
- slug: email-notifications
88
- role_id:
89
- where:
90
- slug: user
91
- - component_id:
92
- where:
93
- slug: email-notifications
94
- role_id:
95
- where:
96
- slug: admin-access
97
- - component_id:
98
- where:
99
- slug: login-history-chart
100
- role_id:
101
- where:
102
- slug: user
103
- - component_id:
104
- where:
105
- slug: login-history-chart
106
- role_id:
107
- where:
108
- slug: admin-access
109
- - component_id:
110
- where:
111
- slug: profile-card
112
- role_id:
113
- where:
114
- slug: user
115
- - component_id:
116
- where:
117
- slug: profile-card
118
- role_id:
119
- where:
120
- slug: admin-access
121
- - component_id:
122
- where:
123
- slug: stat-online-time
124
- role_id:
125
- where:
126
- slug: user
127
- - component_id:
128
- where:
129
- slug: stat-online-time
130
- role_id:
131
- where:
132
- slug: admin-access
133
- - component_id:
134
- where:
135
- slug: stat-actions-today
136
- role_id:
137
- where:
138
- slug: user
139
- - component_id:
140
- where:
141
- slug: stat-actions-today
142
- role_id:
143
- where:
144
- slug: admin-access
145
- - component_id:
146
- where:
147
- slug: stat-consecutive-days
148
- role_id:
149
- where:
150
- slug: user
151
- - component_id:
152
- where:
153
- slug: stat-consecutive-days
154
- role_id:
155
- where:
156
- slug: admin-access
157
- - component_id:
158
- where:
159
- slug: stat-access-level
160
- role_id:
161
- where:
162
- slug: user
163
- - component_id:
164
- where:
165
- slug: stat-access-level
166
- role_id:
167
- where:
168
- slug: admin-access
169
- - component_id:
170
- where:
171
- slug: user-roles
172
- role_id:
173
- where:
174
- slug: user
175
- - component_id:
176
- where:
177
- slug: user-roles
178
- role_id:
179
- where:
180
- slug: admin-access
181
- - component_id:
182
- where:
183
- slug: user-sessions
184
- role_id:
185
- where:
186
- slug: user
187
- - component_id:
188
- where:
189
- slug: user-sessions
190
- role_id:
191
- where:
192
- slug: admin-access
193
-
194
- - component_id:
195
- where:
196
- slug: mail-config
197
- role_id:
198
- where:
199
- slug: admin
200
- - component_id:
201
- where:
202
- slug: locale-config
203
- role_id:
204
- where:
205
- slug: admin
206
- - component_id:
207
- where:
208
- slug: oauth-config
209
- role_id:
210
- where:
211
- slug: admin
212
- - component_id:
213
- where:
214
- slug: storage-config
215
- role_id:
216
- where:
217
- slug: admin
218
- - component_id:
219
- where:
220
- slug: theme-config
221
- role_id:
222
- where:
223
- slug: admin
1
+ - component_id:
2
+ where:
3
+ slug: active-users-card
4
+ role_id:
5
+ where:
6
+ slug: admin-access
7
+ - component_id:
8
+ where:
9
+ slug: mail-sent-card
10
+ role_id:
11
+ where:
12
+ slug: admin-access
13
+ - component_id:
14
+ where:
15
+ slug: mail-sent-chart
16
+ role_id:
17
+ where:
18
+ slug: admin-access
19
+ - component_id:
20
+ where:
21
+ slug: permissions-card
22
+ role_id:
23
+ where:
24
+ slug: admin-access
25
+ - component_id:
26
+ where:
27
+ slug: permissions-chart
28
+ role_id:
29
+ where:
30
+ slug: admin-access
31
+ - component_id:
32
+ where:
33
+ slug: session-activity-chart
34
+ role_id:
35
+ where:
36
+ slug: admin-access
37
+ - component_id:
38
+ where:
39
+ slug: sessions-today-card
40
+ role_id:
41
+ where:
42
+ slug: admin-access
43
+ - component_id:
44
+ where:
45
+ slug: menus-card
46
+ role_id:
47
+ where:
48
+ slug: admin-access
49
+ - component_id:
50
+ where:
51
+ slug: routes-card
52
+ role_id:
53
+ where:
54
+ slug: admin-access
55
+ - component_id:
56
+ where:
57
+ slug: user-growth-chart
58
+ role_id:
59
+ where:
60
+ slug: admin-access
61
+ - component_id:
62
+ where:
63
+ slug: account-security
64
+ role_id:
65
+ where:
66
+ slug: user
67
+ - component_id:
68
+ where:
69
+ slug: account-security
70
+ role_id:
71
+ where:
72
+ slug: admin-access
73
+ - component_id:
74
+ where:
75
+ slug: activity-timeline
76
+ role_id:
77
+ where:
78
+ slug: user
79
+ - component_id:
80
+ where:
81
+ slug: activity-timeline
82
+ role_id:
83
+ where:
84
+ slug: admin-access
85
+ - component_id:
86
+ where:
87
+ slug: email-notifications
88
+ role_id:
89
+ where:
90
+ slug: user
91
+ - component_id:
92
+ where:
93
+ slug: email-notifications
94
+ role_id:
95
+ where:
96
+ slug: admin-access
97
+ - component_id:
98
+ where:
99
+ slug: login-history-chart
100
+ role_id:
101
+ where:
102
+ slug: user
103
+ - component_id:
104
+ where:
105
+ slug: login-history-chart
106
+ role_id:
107
+ where:
108
+ slug: admin-access
109
+ - component_id:
110
+ where:
111
+ slug: profile-card
112
+ role_id:
113
+ where:
114
+ slug: user
115
+ - component_id:
116
+ where:
117
+ slug: profile-card
118
+ role_id:
119
+ where:
120
+ slug: admin-access
121
+ - component_id:
122
+ where:
123
+ slug: stat-online-time
124
+ role_id:
125
+ where:
126
+ slug: user
127
+ - component_id:
128
+ where:
129
+ slug: stat-online-time
130
+ role_id:
131
+ where:
132
+ slug: admin-access
133
+ - component_id:
134
+ where:
135
+ slug: stat-actions-today
136
+ role_id:
137
+ where:
138
+ slug: user
139
+ - component_id:
140
+ where:
141
+ slug: stat-actions-today
142
+ role_id:
143
+ where:
144
+ slug: admin-access
145
+ - component_id:
146
+ where:
147
+ slug: stat-consecutive-days
148
+ role_id:
149
+ where:
150
+ slug: user
151
+ - component_id:
152
+ where:
153
+ slug: stat-consecutive-days
154
+ role_id:
155
+ where:
156
+ slug: admin-access
157
+ - component_id:
158
+ where:
159
+ slug: stat-access-level
160
+ role_id:
161
+ where:
162
+ slug: user
163
+ - component_id:
164
+ where:
165
+ slug: stat-access-level
166
+ role_id:
167
+ where:
168
+ slug: admin-access
169
+ - component_id:
170
+ where:
171
+ slug: user-roles
172
+ role_id:
173
+ where:
174
+ slug: user
175
+ - component_id:
176
+ where:
177
+ slug: user-roles
178
+ role_id:
179
+ where:
180
+ slug: admin-access
181
+ - component_id:
182
+ where:
183
+ slug: user-sessions
184
+ role_id:
185
+ where:
186
+ slug: user
187
+ - component_id:
188
+ where:
189
+ slug: user-sessions
190
+ role_id:
191
+ where:
192
+ slug: admin-access
193
+
194
+ - component_id:
195
+ where:
196
+ slug: mail-config
197
+ role_id:
198
+ where:
199
+ slug: admin
200
+ - component_id:
201
+ where:
202
+ slug: locale-config
203
+ role_id:
204
+ where:
205
+ slug: admin
206
+ - component_id:
207
+ where:
208
+ slug: oauth-config
209
+ role_id:
210
+ where:
211
+ slug: admin
212
+ - component_id:
213
+ where:
214
+ slug: storage-config
215
+ role_id:
216
+ where:
217
+ slug: admin
218
+ - component_id:
219
+ where:
220
+ slug: theme-config
221
+ role_id:
222
+ where:
223
+ slug: admin