@hed-hog/core 0.0.329 → 0.0.330
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/core.module.d.ts.map +1 -1
- package/dist/core.module.js +7 -4
- package/dist/core.module.js.map +1 -1
- 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/index.d.ts +8 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- 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/oauth/oauth.service.js +1 -1
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/pdf/components/index.d.ts +57 -0
- package/dist/pdf/components/index.d.ts.map +1 -0
- package/dist/pdf/components/index.js +258 -0
- package/dist/pdf/components/index.js.map +1 -0
- package/dist/pdf/dto/generate-pdf.dto.d.ts +5 -0
- package/dist/pdf/dto/generate-pdf.dto.d.ts.map +1 -0
- package/dist/pdf/dto/generate-pdf.dto.js +27 -0
- package/dist/pdf/dto/generate-pdf.dto.js.map +1 -0
- package/dist/pdf/interfaces/pdf-theme-config.interface.d.ts +10 -0
- package/dist/pdf/interfaces/pdf-theme-config.interface.d.ts.map +1 -0
- package/dist/pdf/interfaces/pdf-theme-config.interface.js +3 -0
- package/dist/pdf/interfaces/pdf-theme-config.interface.js.map +1 -0
- package/dist/pdf/pdf.controller.d.ts +16 -0
- package/dist/pdf/pdf.controller.d.ts.map +1 -0
- package/dist/pdf/pdf.controller.js +100 -0
- package/dist/pdf/pdf.controller.js.map +1 -0
- package/dist/pdf/pdf.module.d.ts +3 -0
- package/dist/pdf/pdf.module.d.ts.map +1 -0
- package/dist/pdf/pdf.module.js +29 -0
- package/dist/pdf/pdf.module.js.map +1 -0
- package/dist/pdf/pdf.service.d.ts +44 -0
- package/dist/pdf/pdf.service.d.ts.map +1 -0
- package/dist/pdf/pdf.service.js +185 -0
- package/dist/pdf/pdf.service.js.map +1 -0
- package/dist/pdf/templates/hcode-institutional.template.d.ts +36 -0
- package/dist/pdf/templates/hcode-institutional.template.d.ts.map +1 -0
- package/dist/pdf/templates/hcode-institutional.template.js +67 -0
- package/dist/pdf/templates/hcode-institutional.template.js.map +1 -0
- package/dist/pdf/themes/hcode.theme.d.ts +25 -0
- package/dist/pdf/themes/hcode.theme.d.ts.map +1 -0
- package/dist/pdf/themes/hcode.theme.js +504 -0
- package/dist/pdf/themes/hcode.theme.js.map +1 -0
- 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/data/route.yaml +8 -0
- package/hedhog/data/setting_group.yaml +60 -0
- package/hedhog/frontend/app/mcp_chat/page.tsx.ejs +574 -574
- package/hedhog/frontend/app/users/user-sheet.tsx.ejs +5 -9
- package/hedhog/frontend/messages/en.json +2 -0
- package/hedhog/frontend/messages/pt.json +2 -0
- package/package.json +4 -4
- package/src/core.module.ts +7 -4
- package/src/index.ts +9 -6
- package/src/oauth/oauth.service.ts +12 -12
- package/src/pdf/components/index.ts +316 -0
- package/src/pdf/dto/generate-pdf.dto.ts +11 -0
- package/src/pdf/interfaces/pdf-theme-config.interface.ts +10 -0
- package/src/pdf/pdf.controller.ts +86 -0
- package/src/pdf/pdf.module.ts +17 -0
- package/src/pdf/pdf.service.ts +229 -0
- package/src/pdf/templates/hcode-institutional.template.ts +122 -0
- package/src/pdf/themes/hcode.theme.ts +515 -0
|
@@ -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;
|
|
25
23
|
value: string;
|
|
26
24
|
created_at: Date;
|
|
25
|
+
id: number;
|
|
27
26
|
updated_at: Date;
|
|
28
27
|
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;
|
|
50
48
|
value: string;
|
|
51
49
|
created_at: Date;
|
|
50
|
+
id: number;
|
|
52
51
|
updated_at: Date;
|
|
53
52
|
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
|
-
id: number;
|
|
59
|
-
email: string | null;
|
|
60
|
-
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
61
58
|
created_at: Date;
|
|
59
|
+
id: number;
|
|
62
60
|
updated_at: Date;
|
|
63
61
|
user_id: number;
|
|
62
|
+
email: string | null;
|
|
63
|
+
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
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
|
-
id: number;
|
|
71
|
-
action: string;
|
|
72
70
|
created_at: Date;
|
|
71
|
+
id: number;
|
|
73
72
|
updated_at: Date;
|
|
74
73
|
user_id: number;
|
|
74
|
+
action: string;
|
|
75
75
|
}[];
|
|
76
76
|
user_credential: {
|
|
77
|
-
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
78
|
-
id: number;
|
|
79
|
-
hash: string;
|
|
80
77
|
created_at: Date;
|
|
78
|
+
id: number;
|
|
81
79
|
updated_at: Date;
|
|
82
80
|
user_id: number;
|
|
83
|
-
|
|
81
|
+
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
82
|
+
hash: string;
|
|
84
83
|
revoked_at: Date | null;
|
|
84
|
+
expires_at: Date | null;
|
|
85
85
|
requires_reset: boolean;
|
|
86
86
|
}[];
|
|
87
87
|
user_session: {
|
|
88
|
-
id: number;
|
|
89
|
-
hash: string;
|
|
90
88
|
created_at: Date;
|
|
89
|
+
id: number;
|
|
91
90
|
updated_at: Date;
|
|
91
|
+
user_id: number;
|
|
92
|
+
hash: string;
|
|
92
93
|
ip_address: string;
|
|
93
94
|
user_agent: string;
|
|
94
|
-
user_id: number;
|
|
95
|
-
expires_at: Date;
|
|
96
95
|
revoked_at: Date | null;
|
|
96
|
+
expires_at: Date;
|
|
97
97
|
}[];
|
|
98
98
|
} & {
|
|
99
|
-
name: string;
|
|
100
|
-
id: number;
|
|
101
99
|
created_at: Date;
|
|
100
|
+
id: number;
|
|
102
101
|
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
|
-
name: string;
|
|
112
|
-
id: number;
|
|
113
111
|
created_at: Date;
|
|
112
|
+
id: number;
|
|
114
113
|
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
|
-
name: string;
|
|
127
|
-
id: number;
|
|
128
126
|
created_at: Date;
|
|
127
|
+
id: number;
|
|
129
128
|
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;
|
|
150
148
|
value: string;
|
|
151
149
|
created_at: Date;
|
|
150
|
+
id: number;
|
|
152
151
|
updated_at: Date;
|
|
153
152
|
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
|
-
id: number;
|
|
159
|
-
email: string | null;
|
|
160
|
-
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
161
158
|
created_at: Date;
|
|
159
|
+
id: number;
|
|
162
160
|
updated_at: Date;
|
|
163
161
|
user_id: number;
|
|
162
|
+
email: string | null;
|
|
163
|
+
provider: import("@prisma/client").$Enums.user_account_provider_52222e2ecb_enum;
|
|
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
|
-
id: number;
|
|
171
|
-
action: string;
|
|
172
170
|
created_at: Date;
|
|
171
|
+
id: number;
|
|
173
172
|
updated_at: Date;
|
|
174
173
|
user_id: number;
|
|
174
|
+
action: string;
|
|
175
175
|
}[];
|
|
176
176
|
user_credential: {
|
|
177
|
-
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
178
|
-
id: number;
|
|
179
|
-
hash: string;
|
|
180
177
|
created_at: Date;
|
|
178
|
+
id: number;
|
|
181
179
|
updated_at: Date;
|
|
182
180
|
user_id: number;
|
|
183
|
-
|
|
181
|
+
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
182
|
+
hash: string;
|
|
184
183
|
revoked_at: Date | null;
|
|
184
|
+
expires_at: Date | null;
|
|
185
185
|
requires_reset: boolean;
|
|
186
186
|
}[];
|
|
187
187
|
user_session: {
|
|
188
|
-
id: number;
|
|
189
|
-
hash: string;
|
|
190
188
|
created_at: Date;
|
|
189
|
+
id: number;
|
|
191
190
|
updated_at: Date;
|
|
191
|
+
user_id: number;
|
|
192
|
+
hash: string;
|
|
192
193
|
ip_address: string;
|
|
193
194
|
user_agent: string;
|
|
194
|
-
user_id: number;
|
|
195
|
-
expires_at: Date;
|
|
196
195
|
revoked_at: Date | null;
|
|
196
|
+
expires_at: Date;
|
|
197
197
|
}[];
|
|
198
198
|
} & {
|
|
199
|
-
name: string;
|
|
200
|
-
id: number;
|
|
201
199
|
created_at: Date;
|
|
200
|
+
id: number;
|
|
202
201
|
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;
|
|
213
211
|
value: string;
|
|
214
212
|
created_at: Date;
|
|
213
|
+
id: number;
|
|
215
214
|
updated_at: Date;
|
|
216
215
|
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
|
-
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
222
|
-
id: number;
|
|
223
|
-
hash: string;
|
|
224
221
|
created_at: Date;
|
|
222
|
+
id: number;
|
|
225
223
|
updated_at: Date;
|
|
226
224
|
user_id: number;
|
|
227
|
-
|
|
225
|
+
type: import("@prisma/client").$Enums.user_credential_type_4466d7f008_enum;
|
|
226
|
+
hash: string;
|
|
228
227
|
revoked_at: Date | null;
|
|
228
|
+
expires_at: Date | null;
|
|
229
229
|
requires_reset: boolean;
|
|
230
230
|
}[];
|
|
231
231
|
user_session: {
|
|
232
|
-
id: number;
|
|
233
|
-
hash: string;
|
|
234
232
|
created_at: Date;
|
|
233
|
+
id: number;
|
|
235
234
|
updated_at: Date;
|
|
235
|
+
user_id: number;
|
|
236
|
+
hash: string;
|
|
236
237
|
ip_address: string;
|
|
237
238
|
user_agent: string;
|
|
238
|
-
user_id: number;
|
|
239
|
-
expires_at: Date;
|
|
240
239
|
revoked_at: Date | null;
|
|
240
|
+
expires_at: Date;
|
|
241
241
|
}[];
|
|
242
242
|
} & {
|
|
243
|
-
name: string;
|
|
244
|
-
id: number;
|
|
245
243
|
created_at: Date;
|
|
244
|
+
id: number;
|
|
246
245
|
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
|
-
id: number;
|
|
277
276
|
created_at: Date;
|
|
277
|
+
id: number;
|
|
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
|
-
id: number;
|
|
287
|
-
action: string;
|
|
288
286
|
created_at: Date;
|
|
287
|
+
id: number;
|
|
289
288
|
updated_at: Date;
|
|
290
289
|
user_id: number;
|
|
290
|
+
action: string;
|
|
291
291
|
}>;
|
|
292
292
|
private validateDeleteIds;
|
|
293
293
|
private deleteOldAvatar;
|
package/hedhog/data/route.yaml
CHANGED
|
@@ -1857,4 +1857,64 @@
|
|
|
1857
1857
|
where:
|
|
1858
1858
|
slug: retry-config
|
|
1859
1859
|
|
|
1860
|
+
- slug: pdf
|
|
1861
|
+
icon: file-text
|
|
1862
|
+
name:
|
|
1863
|
+
en: PDF
|
|
1864
|
+
pt: PDF
|
|
1865
|
+
description:
|
|
1866
|
+
en: Visual identity settings for PDF document generation
|
|
1867
|
+
pt: Configurações de identidade visual para geração de documentos PDF
|
|
1868
|
+
relations:
|
|
1869
|
+
setting:
|
|
1870
|
+
- slug: pdf-company-name
|
|
1871
|
+
type: string
|
|
1872
|
+
name:
|
|
1873
|
+
en: Company Name
|
|
1874
|
+
pt: Nome da Empresa
|
|
1875
|
+
description:
|
|
1876
|
+
en: Company name displayed in PDF headers and footers
|
|
1877
|
+
pt: Nome da empresa exibido nos cabeçalhos e rodapés dos PDFs
|
|
1878
|
+
value: hcode
|
|
1879
|
+
user_override: false
|
|
1880
|
+
- slug: pdf-logo
|
|
1881
|
+
type: string
|
|
1882
|
+
name:
|
|
1883
|
+
en: Logo URL
|
|
1884
|
+
pt: URL do Logo
|
|
1885
|
+
description:
|
|
1886
|
+
en: URL or data URI of the logo image for PDFs. Leave empty to use default CSS wordmark.
|
|
1887
|
+
pt: URL ou data URI da imagem do logo para PDFs. Deixe vazio para usar o wordmark CSS padrão.
|
|
1888
|
+
value: ''
|
|
1889
|
+
user_override: false
|
|
1890
|
+
- slug: pdf-consulting-color
|
|
1891
|
+
type: string
|
|
1892
|
+
name:
|
|
1893
|
+
en: Consulting Primary Color
|
|
1894
|
+
pt: Cor Principal Consulting
|
|
1895
|
+
description:
|
|
1896
|
+
en: Primary hex color for Consulting area PDFs (default #2D669E)
|
|
1897
|
+
pt: Cor hexadecimal principal para PDFs da área Consulting (padrão #2D669E)
|
|
1898
|
+
value: '#2D669E'
|
|
1899
|
+
user_override: false
|
|
1900
|
+
- slug: pdf-training-color
|
|
1901
|
+
type: string
|
|
1902
|
+
name:
|
|
1903
|
+
en: Training Primary Color
|
|
1904
|
+
pt: Cor Principal Training
|
|
1905
|
+
description:
|
|
1906
|
+
en: Primary hex color for Training area PDFs (default #FF760C)
|
|
1907
|
+
pt: Cor hexadecimal principal para PDFs da área Training (padrão #FF760C)
|
|
1908
|
+
value: '#FF760C'
|
|
1909
|
+
user_override: false
|
|
1910
|
+
- slug: pdf-research-color
|
|
1911
|
+
type: string
|
|
1912
|
+
name:
|
|
1913
|
+
en: Research Primary Color
|
|
1914
|
+
pt: Cor Principal Research
|
|
1915
|
+
description:
|
|
1916
|
+
en: Primary hex color for Research area PDFs (default #9400B5)
|
|
1917
|
+
pt: Cor hexadecimal principal para PDFs da área Research (padrão #9400B5)
|
|
1918
|
+
value: '#9400B5'
|
|
1919
|
+
user_override: false
|
|
1860
1920
|
|