@hed-hog/core 0.0.306 → 0.0.310
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/auth/auth.controller.d.ts +2 -2
- package/dist/auth/auth.service.d.ts +7 -7
- package/dist/challenge/challenge.service.d.ts +2 -2
- package/dist/mail/mail.controller.d.ts +2 -2
- package/dist/mail/mail.service.d.ts +2 -2
- package/dist/session/session.controller.d.ts +1 -1
- package/dist/session/session.service.d.ts +3 -3
- package/dist/user/user.controller.d.ts +1 -1
- package/dist/user/user.service.d.ts +3 -3
- package/hedhog/data/setting_group.yaml +27 -4
- package/hedhog/data/setting_subgroup.yaml +8 -0
- package/hedhog/frontend/app/dashboard/dashboard-home-tabs.tsx.ejs +5 -5
- package/package.json +5 -5
|
@@ -65,10 +65,10 @@ export declare class AuthController {
|
|
|
65
65
|
created_at: Date;
|
|
66
66
|
updated_at: Date;
|
|
67
67
|
ip_address: string;
|
|
68
|
+
user_agent: string;
|
|
68
69
|
user_id: number;
|
|
69
70
|
expires_at: Date;
|
|
70
71
|
revoked_at: Date | null;
|
|
71
|
-
user_agent: string;
|
|
72
72
|
}[];
|
|
73
73
|
name: string;
|
|
74
74
|
id: number;
|
|
@@ -177,10 +177,10 @@ export declare class AuthController {
|
|
|
177
177
|
created_at: Date;
|
|
178
178
|
updated_at: Date;
|
|
179
179
|
ip_address: string;
|
|
180
|
+
user_agent: string;
|
|
180
181
|
user_id: number;
|
|
181
182
|
expires_at: Date;
|
|
182
183
|
revoked_at: Date | null;
|
|
183
|
-
user_agent: string;
|
|
184
184
|
};
|
|
185
185
|
}>;
|
|
186
186
|
}
|
|
@@ -27,10 +27,10 @@ export declare class AuthService {
|
|
|
27
27
|
created_at: Date;
|
|
28
28
|
updated_at: Date;
|
|
29
29
|
ip_address: string;
|
|
30
|
+
user_agent: string;
|
|
30
31
|
user_id: number;
|
|
31
32
|
expires_at: Date;
|
|
32
33
|
revoked_at: Date | null;
|
|
33
|
-
user_agent: string;
|
|
34
34
|
};
|
|
35
35
|
}>;
|
|
36
36
|
private hasPendingPasswordReset;
|
|
@@ -127,10 +127,10 @@ export declare class AuthService {
|
|
|
127
127
|
created_at: Date;
|
|
128
128
|
updated_at: Date;
|
|
129
129
|
ip_address: string;
|
|
130
|
+
user_agent: string;
|
|
130
131
|
user_id: number;
|
|
131
132
|
expires_at: Date;
|
|
132
133
|
revoked_at: Date | null;
|
|
133
|
-
user_agent: string;
|
|
134
134
|
}[];
|
|
135
135
|
name: string;
|
|
136
136
|
id: number;
|
|
@@ -151,10 +151,10 @@ export declare class AuthService {
|
|
|
151
151
|
created_at: Date;
|
|
152
152
|
updated_at: Date;
|
|
153
153
|
ip_address: string;
|
|
154
|
+
user_agent: string;
|
|
154
155
|
user_id: number;
|
|
155
156
|
expires_at: Date;
|
|
156
157
|
revoked_at: Date | null;
|
|
157
|
-
user_agent: string;
|
|
158
158
|
};
|
|
159
159
|
}>;
|
|
160
160
|
forgotPassword(locale: string, { email }: ForgetDTO): Promise<{
|
|
@@ -172,10 +172,10 @@ export declare class AuthService {
|
|
|
172
172
|
created_at: Date;
|
|
173
173
|
updated_at: Date;
|
|
174
174
|
ip_address: string;
|
|
175
|
+
user_agent: string;
|
|
175
176
|
user_id: number;
|
|
176
177
|
expires_at: Date;
|
|
177
178
|
revoked_at: Date | null;
|
|
178
|
-
user_agent: string;
|
|
179
179
|
};
|
|
180
180
|
}>;
|
|
181
181
|
verifyMfaCode(locale: string, mfaToken: string, code: string, ipAddress: string, userAgent: string, methodType?: 'totp' | 'email' | 'recovery'): Promise<{
|
|
@@ -187,10 +187,10 @@ export declare class AuthService {
|
|
|
187
187
|
created_at: Date;
|
|
188
188
|
updated_at: Date;
|
|
189
189
|
ip_address: string;
|
|
190
|
+
user_agent: string;
|
|
190
191
|
user_id: number;
|
|
191
192
|
expires_at: Date;
|
|
192
193
|
revoked_at: Date | null;
|
|
193
|
-
user_agent: string;
|
|
194
194
|
};
|
|
195
195
|
requiresPasswordReset: boolean;
|
|
196
196
|
}>;
|
|
@@ -203,10 +203,10 @@ export declare class AuthService {
|
|
|
203
203
|
created_at: Date;
|
|
204
204
|
updated_at: Date;
|
|
205
205
|
ip_address: string;
|
|
206
|
+
user_agent: string;
|
|
206
207
|
user_id: number;
|
|
207
208
|
expires_at: Date;
|
|
208
209
|
revoked_at: Date | null;
|
|
209
|
-
user_agent: string;
|
|
210
210
|
};
|
|
211
211
|
requiresPasswordReset: boolean;
|
|
212
212
|
}>;
|
|
@@ -224,10 +224,10 @@ export declare class AuthService {
|
|
|
224
224
|
created_at: Date;
|
|
225
225
|
updated_at: Date;
|
|
226
226
|
ip_address: string;
|
|
227
|
+
user_agent: string;
|
|
227
228
|
user_id: number;
|
|
228
229
|
expires_at: Date;
|
|
229
230
|
revoked_at: Date | null;
|
|
230
|
-
user_agent: string;
|
|
231
231
|
};
|
|
232
232
|
requiresPasswordReset: boolean;
|
|
233
233
|
}>;
|
|
@@ -24,9 +24,9 @@ export declare class ChallengeService {
|
|
|
24
24
|
hash: string;
|
|
25
25
|
created_at: Date;
|
|
26
26
|
updated_at: Date;
|
|
27
|
+
attempts: number;
|
|
27
28
|
expires_at: Date;
|
|
28
29
|
verified_at: Date | null;
|
|
29
|
-
attempts: number;
|
|
30
30
|
user_mfa_id: number;
|
|
31
31
|
}>;
|
|
32
32
|
verifyCodePassword(locale: string, code: string): Promise<{
|
|
@@ -57,9 +57,9 @@ export declare class ChallengeService {
|
|
|
57
57
|
hash: string;
|
|
58
58
|
created_at: Date;
|
|
59
59
|
updated_at: Date;
|
|
60
|
+
attempts: number;
|
|
60
61
|
expires_at: Date;
|
|
61
62
|
verified_at: Date | null;
|
|
62
|
-
attempts: number;
|
|
63
63
|
user_mfa_id: number;
|
|
64
64
|
}>;
|
|
65
65
|
verifyCode(locale: string, userId: number, code: string, providedHash: string, name?: string, email?: string): Promise<{
|
|
@@ -41,8 +41,8 @@ export declare class MailController {
|
|
|
41
41
|
id: number;
|
|
42
42
|
created_at: Date;
|
|
43
43
|
updated_at: Date;
|
|
44
|
-
locale_id: number;
|
|
45
44
|
subject: string;
|
|
45
|
+
locale_id: number;
|
|
46
46
|
mail_id: number;
|
|
47
47
|
}[];
|
|
48
48
|
mail_var: {
|
|
@@ -68,8 +68,8 @@ export declare class MailController {
|
|
|
68
68
|
id: number;
|
|
69
69
|
created_at: Date;
|
|
70
70
|
updated_at: Date;
|
|
71
|
-
locale_id: number;
|
|
72
71
|
subject: string;
|
|
72
|
+
locale_id: number;
|
|
73
73
|
mail_id: number;
|
|
74
74
|
}[];
|
|
75
75
|
mail_var: {
|
|
@@ -63,8 +63,8 @@ export declare class MailService implements OnModuleInit {
|
|
|
63
63
|
id: number;
|
|
64
64
|
created_at: Date;
|
|
65
65
|
updated_at: Date;
|
|
66
|
-
locale_id: number;
|
|
67
66
|
subject: string;
|
|
67
|
+
locale_id: number;
|
|
68
68
|
mail_id: number;
|
|
69
69
|
}[];
|
|
70
70
|
mail_var: {
|
|
@@ -89,8 +89,8 @@ export declare class MailService implements OnModuleInit {
|
|
|
89
89
|
id: number;
|
|
90
90
|
created_at: Date;
|
|
91
91
|
updated_at: Date;
|
|
92
|
-
locale_id: number;
|
|
93
92
|
subject: string;
|
|
93
|
+
locale_id: number;
|
|
94
94
|
mail_id: number;
|
|
95
95
|
}[];
|
|
96
96
|
mail_var: {
|
|
@@ -35,10 +35,10 @@ export declare class SessionController {
|
|
|
35
35
|
created_at: Date;
|
|
36
36
|
updated_at: Date;
|
|
37
37
|
ip_address: string;
|
|
38
|
+
user_agent: string;
|
|
38
39
|
user_id: number;
|
|
39
40
|
expires_at: Date;
|
|
40
41
|
revoked_at: Date | null;
|
|
41
|
-
user_agent: string;
|
|
42
42
|
}>;
|
|
43
43
|
}
|
|
44
44
|
//# sourceMappingURL=session.controller.d.ts.map
|
|
@@ -23,10 +23,10 @@ export declare class SessionService {
|
|
|
23
23
|
created_at: Date;
|
|
24
24
|
updated_at: Date;
|
|
25
25
|
ip_address: string;
|
|
26
|
+
user_agent: string;
|
|
26
27
|
user_id: number;
|
|
27
28
|
expires_at: Date;
|
|
28
29
|
revoked_at: Date | null;
|
|
29
|
-
user_agent: string;
|
|
30
30
|
};
|
|
31
31
|
}>;
|
|
32
32
|
refresh(locale: string, refreshToken: string, ipAddress: string, userAgent: string): Promise<{
|
|
@@ -37,10 +37,10 @@ export declare class SessionService {
|
|
|
37
37
|
created_at: Date;
|
|
38
38
|
updated_at: Date;
|
|
39
39
|
ip_address: string;
|
|
40
|
+
user_agent: string;
|
|
40
41
|
user_id: number;
|
|
41
42
|
expires_at: Date;
|
|
42
43
|
revoked_at: Date | null;
|
|
43
|
-
user_agent: string;
|
|
44
44
|
};
|
|
45
45
|
}>;
|
|
46
46
|
deleteRefreshTokenCookie(res: any, refreshToken: string): Promise<{
|
|
@@ -71,10 +71,10 @@ export declare class SessionService {
|
|
|
71
71
|
created_at: Date;
|
|
72
72
|
updated_at: Date;
|
|
73
73
|
ip_address: string;
|
|
74
|
+
user_agent: string;
|
|
74
75
|
user_id: number;
|
|
75
76
|
expires_at: Date;
|
|
76
77
|
revoked_at: Date | null;
|
|
77
|
-
user_agent: string;
|
|
78
78
|
}>;
|
|
79
79
|
/**
|
|
80
80
|
* Enforce maximum concurrent sessions limit for a user.
|
|
@@ -67,10 +67,10 @@ export declare class UserController {
|
|
|
67
67
|
created_at: Date;
|
|
68
68
|
updated_at: Date;
|
|
69
69
|
ip_address: string;
|
|
70
|
+
user_agent: string;
|
|
70
71
|
user_id: number;
|
|
71
72
|
expires_at: Date;
|
|
72
73
|
revoked_at: Date | null;
|
|
73
|
-
user_agent: string;
|
|
74
74
|
}[];
|
|
75
75
|
} & {
|
|
76
76
|
name: string;
|
|
@@ -88,10 +88,10 @@ export declare class UserService {
|
|
|
88
88
|
created_at: Date;
|
|
89
89
|
updated_at: Date;
|
|
90
90
|
ip_address: string;
|
|
91
|
+
user_agent: string;
|
|
91
92
|
user_id: number;
|
|
92
93
|
expires_at: Date;
|
|
93
94
|
revoked_at: Date | null;
|
|
94
|
-
user_agent: string;
|
|
95
95
|
}[];
|
|
96
96
|
} & {
|
|
97
97
|
name: string;
|
|
@@ -188,10 +188,10 @@ export declare class UserService {
|
|
|
188
188
|
created_at: Date;
|
|
189
189
|
updated_at: Date;
|
|
190
190
|
ip_address: string;
|
|
191
|
+
user_agent: string;
|
|
191
192
|
user_id: number;
|
|
192
193
|
expires_at: Date;
|
|
193
194
|
revoked_at: Date | null;
|
|
194
|
-
user_agent: string;
|
|
195
195
|
}[];
|
|
196
196
|
} & {
|
|
197
197
|
name: string;
|
|
@@ -232,10 +232,10 @@ export declare class UserService {
|
|
|
232
232
|
created_at: Date;
|
|
233
233
|
updated_at: Date;
|
|
234
234
|
ip_address: string;
|
|
235
|
+
user_agent: string;
|
|
235
236
|
user_id: number;
|
|
236
237
|
expires_at: Date;
|
|
237
238
|
revoked_at: Date | null;
|
|
238
|
-
user_agent: string;
|
|
239
239
|
}[];
|
|
240
240
|
} & {
|
|
241
241
|
name: string;
|
|
@@ -434,6 +434,30 @@
|
|
|
434
434
|
subgroup_id:
|
|
435
435
|
where:
|
|
436
436
|
slug: date-time-formats
|
|
437
|
+
- slug: currency
|
|
438
|
+
type: string
|
|
439
|
+
component: combobox
|
|
440
|
+
name:
|
|
441
|
+
en: Currency
|
|
442
|
+
pt: Moeda
|
|
443
|
+
description:
|
|
444
|
+
en: Default currency used to format monetary values throughout the system
|
|
445
|
+
pt: Moeda padrão usada para formatar valores monetários em todo o sistema
|
|
446
|
+
value: BRL
|
|
447
|
+
user_override: true
|
|
448
|
+
relations:
|
|
449
|
+
setting_list:
|
|
450
|
+
- value: BRL
|
|
451
|
+
order: 0
|
|
452
|
+
- value: USD
|
|
453
|
+
order: 1
|
|
454
|
+
- value: EUR
|
|
455
|
+
order: 2
|
|
456
|
+
- value: GBP
|
|
457
|
+
order: 3
|
|
458
|
+
subgroup_id:
|
|
459
|
+
where:
|
|
460
|
+
slug: currency-format
|
|
437
461
|
- slug: oauth
|
|
438
462
|
icon: brand-auth0
|
|
439
463
|
name:
|
|
@@ -1603,7 +1627,7 @@
|
|
|
1603
1627
|
description:
|
|
1604
1628
|
en: Email service provider to use for sending notifications
|
|
1605
1629
|
pt: Provedor de serviço de email a usar para enviar notificações
|
|
1606
|
-
value:
|
|
1630
|
+
value: SMTP
|
|
1607
1631
|
component: combobox
|
|
1608
1632
|
relations:
|
|
1609
1633
|
setting_list:
|
|
@@ -1612,7 +1636,6 @@
|
|
|
1612
1636
|
- value: GMAIL
|
|
1613
1637
|
order: 1
|
|
1614
1638
|
- value: SES
|
|
1615
|
-
|
|
1616
1639
|
order: 2
|
|
1617
1640
|
subgroup_id:
|
|
1618
1641
|
where:
|
|
@@ -1637,7 +1660,7 @@
|
|
|
1637
1660
|
description:
|
|
1638
1661
|
en: Hostname or IP address of the SMTP server
|
|
1639
1662
|
pt: Nome do host ou endereço IP do servidor SMTP
|
|
1640
|
-
value:
|
|
1663
|
+
value: localhost
|
|
1641
1664
|
subgroup_id:
|
|
1642
1665
|
where:
|
|
1643
1666
|
slug: smtp-config
|
|
@@ -1649,7 +1672,7 @@
|
|
|
1649
1672
|
description:
|
|
1650
1673
|
en: SMTP server port (typically 587 for TLS or 465 for SSL)
|
|
1651
1674
|
pt: Porta do servidor SMTP (geralmente 587 para TLS ou 465 para SSL)
|
|
1652
|
-
value:
|
|
1675
|
+
value: 1025
|
|
1653
1676
|
subgroup_id:
|
|
1654
1677
|
where:
|
|
1655
1678
|
slug: smtp-config
|
|
@@ -94,6 +94,14 @@
|
|
|
94
94
|
en: Formatting rules for dates and times across the application
|
|
95
95
|
pt: Regras de formatação para datas e horários em toda a aplicação
|
|
96
96
|
|
|
97
|
+
- slug: currency-format
|
|
98
|
+
name:
|
|
99
|
+
en: Currency
|
|
100
|
+
pt: Moeda
|
|
101
|
+
description:
|
|
102
|
+
en: Default currency for monetary value formatting
|
|
103
|
+
pt: Moeda padrão para formatação de valores monetários
|
|
104
|
+
|
|
97
105
|
- slug: oauth-general
|
|
98
106
|
name:
|
|
99
107
|
en: OAuth General
|
|
@@ -1009,9 +1009,9 @@ export function DashboardHomeTabs() {
|
|
|
1009
1009
|
className="h-7 w-40"
|
|
1010
1010
|
/>
|
|
1011
1011
|
) : (
|
|
1012
|
-
<span className="max-w-45 truncate">
|
|
1013
|
-
{getDashboardName(dashboard)}
|
|
1014
|
-
</span>
|
|
1012
|
+
<span className="block min-w-0 max-w-45 truncate">
|
|
1013
|
+
{getDashboardName(dashboard)}
|
|
1014
|
+
</span>
|
|
1015
1015
|
)}
|
|
1016
1016
|
</>
|
|
1017
1017
|
);
|
|
@@ -1025,7 +1025,7 @@ export function DashboardHomeTabs() {
|
|
|
1025
1025
|
onDrop={(event) =>
|
|
1026
1026
|
void handleTabDrop(event, dashboard.slug)
|
|
1027
1027
|
}
|
|
1028
|
-
className="-mb-px flex min-h-9 items-center gap-2 rounded-b-none rounded-t-lg border border-b-0 border-border bg-background px-3 py-2 text-foreground shadow-none"
|
|
1028
|
+
className="-mb-px flex min-h-9 shrink-0 items-center gap-2 rounded-b-none rounded-t-lg border border-b-0 border-border bg-background px-3 py-2 text-foreground shadow-none"
|
|
1029
1029
|
>
|
|
1030
1030
|
{tabContent}
|
|
1031
1031
|
</div>
|
|
@@ -1042,7 +1042,7 @@ export function DashboardHomeTabs() {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
onDragEnd={handleTabDragEnd}
|
|
1044
1044
|
className={cn(
|
|
1045
|
-
'dashboard-tab-trigger -mb-px cursor-pointer gap-2 rounded-b-none rounded-t-lg px-3 py-2
|
|
1045
|
+
'dashboard-tab-trigger -mb-px mt-1 inline-flex h-9 shrink-0 cursor-pointer items-center justify-center gap-2 overflow-hidden rounded-b-none rounded-t-lg border-none px-3 py-2 shadow-none data-[state=active]:shadow-none',
|
|
1046
1046
|
draggingDashboardSlug === dashboard.slug &&
|
|
1047
1047
|
'opacity-70'
|
|
1048
1048
|
)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.310",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"sharp": "^0.34.2",
|
|
31
31
|
"speakeasy": "^2.0.0",
|
|
32
32
|
"uuid": "^11.1.0",
|
|
33
|
-
"@hed-hog/api-
|
|
33
|
+
"@hed-hog/api-mail": "0.0.9",
|
|
34
34
|
"@hed-hog/api-prisma": "0.0.6",
|
|
35
|
+
"@hed-hog/api-locale": "0.0.14",
|
|
35
36
|
"@hed-hog/api": "0.0.6",
|
|
36
|
-
"@hed-hog/api-
|
|
37
|
-
"@hed-hog/api-
|
|
38
|
-
"@hed-hog/api-types": "0.0.1"
|
|
37
|
+
"@hed-hog/api-types": "0.0.1",
|
|
38
|
+
"@hed-hog/api-pagination": "0.0.7"
|
|
39
39
|
},
|
|
40
40
|
"exports": {
|
|
41
41
|
".": {
|