@hed-hog/core 0.0.292 → 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.
- package/dist/auth/auth.controller.d.ts +5 -5
- package/dist/auth/auth.service.d.ts +5 -5
- package/dist/challenge/challenge.service.d.ts +2 -2
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +2 -2
- package/dist/profile/profile.controller.d.ts +6 -6
- package/dist/profile/profile.service.d.ts +6 -6
- package/dist/session/session.controller.d.ts +2 -2
- package/dist/session/session.service.d.ts +3 -3
- package/dist/setting/setting.controller.d.ts +9 -9
- package/dist/setting/setting.service.d.ts +10 -10
- package/dist/user/user.controller.d.ts +6 -6
- package/dist/user/user.service.d.ts +12 -12
- package/hedhog/data/dashboard_component_role.yaml +223 -223
- package/hedhog/data/dashboard_role.yaml +18 -18
- package/hedhog/frontend/app/dashboard/[slug]/dashboard-content.tsx.ejs +0 -2
- package/hedhog/frontend/app/dashboard/components/widgets/permissions-chart.tsx.ejs +62 -62
- package/hedhog/frontend/app/dashboard/page.tsx.ejs +29 -29
- package/hedhog/frontend/app/mail/template/page.tsx.ejs +17 -2
- package/package.json +6 -6
- package/src/ai/ai.service.ts +3 -3
- package/src/auth/auth.controller.ts +11 -11
- package/src/auth/auth.service.ts +8 -8
- package/src/task/task.service.ts +5 -5
|
@@ -21,14 +21,14 @@ export declare class AuthController {
|
|
|
21
21
|
requires_password_reset: boolean;
|
|
22
22
|
user_account: {
|
|
23
23
|
id: number;
|
|
24
|
-
provider: import("
|
|
24
|
+
provider: import(".prisma/client").$Enums.user_account_provider_enum;
|
|
25
25
|
created_at: Date;
|
|
26
26
|
updated_at: Date;
|
|
27
27
|
email: string | null;
|
|
28
28
|
user_id: number;
|
|
29
29
|
provider_user_id: string;
|
|
30
30
|
scopes: string | null;
|
|
31
|
-
refresh_token: import("
|
|
31
|
+
refresh_token: import(".prisma/client/runtime/library").Bytes | null;
|
|
32
32
|
token_expires_at: Date | null;
|
|
33
33
|
}[];
|
|
34
34
|
user_activity: {
|
|
@@ -39,7 +39,7 @@ export declare class AuthController {
|
|
|
39
39
|
user_id: number;
|
|
40
40
|
}[];
|
|
41
41
|
user_credential: {
|
|
42
|
-
type: import("
|
|
42
|
+
type: import(".prisma/client").$Enums.user_credential_type_enum;
|
|
43
43
|
id: number;
|
|
44
44
|
hash: string;
|
|
45
45
|
created_at: Date;
|
|
@@ -51,7 +51,7 @@ export declare class AuthController {
|
|
|
51
51
|
}[];
|
|
52
52
|
user_identifier: {
|
|
53
53
|
value: string;
|
|
54
|
-
type: import("
|
|
54
|
+
type: import(".prisma/client").$Enums.user_identifier_type_enum;
|
|
55
55
|
id: number;
|
|
56
56
|
created_at: Date;
|
|
57
57
|
updated_at: Date;
|
|
@@ -110,7 +110,7 @@ export declare class AuthController {
|
|
|
110
110
|
requiresMfa: boolean;
|
|
111
111
|
mfaToken: string;
|
|
112
112
|
mfaMethods: {
|
|
113
|
-
type: import("
|
|
113
|
+
type: import(".prisma/client").$Enums.user_mfa_type_enum;
|
|
114
114
|
id: number;
|
|
115
115
|
}[];
|
|
116
116
|
}>;
|
|
@@ -72,7 +72,7 @@ export declare class AuthService {
|
|
|
72
72
|
requiresMfa: boolean;
|
|
73
73
|
mfaToken: string;
|
|
74
74
|
mfaMethods: {
|
|
75
|
-
type: import("
|
|
75
|
+
type: import(".prisma/client").$Enums.user_mfa_type_enum;
|
|
76
76
|
id: number;
|
|
77
77
|
}[];
|
|
78
78
|
}>;
|
|
@@ -83,14 +83,14 @@ export declare class AuthService {
|
|
|
83
83
|
requires_password_reset: boolean;
|
|
84
84
|
user_account: {
|
|
85
85
|
id: number;
|
|
86
|
-
provider: import("
|
|
86
|
+
provider: import(".prisma/client").$Enums.user_account_provider_enum;
|
|
87
87
|
created_at: Date;
|
|
88
88
|
updated_at: Date;
|
|
89
89
|
email: string | null;
|
|
90
90
|
user_id: number;
|
|
91
91
|
provider_user_id: string;
|
|
92
92
|
scopes: string | null;
|
|
93
|
-
refresh_token: import("
|
|
93
|
+
refresh_token: import(".prisma/client/runtime/library").Bytes | null;
|
|
94
94
|
token_expires_at: Date | null;
|
|
95
95
|
}[];
|
|
96
96
|
user_activity: {
|
|
@@ -101,7 +101,7 @@ export declare class AuthService {
|
|
|
101
101
|
user_id: number;
|
|
102
102
|
}[];
|
|
103
103
|
user_credential: {
|
|
104
|
-
type: import("
|
|
104
|
+
type: import(".prisma/client").$Enums.user_credential_type_enum;
|
|
105
105
|
id: number;
|
|
106
106
|
hash: string;
|
|
107
107
|
created_at: Date;
|
|
@@ -113,7 +113,7 @@ export declare class AuthService {
|
|
|
113
113
|
}[];
|
|
114
114
|
user_identifier: {
|
|
115
115
|
value: string;
|
|
116
|
-
type: import("
|
|
116
|
+
type: import(".prisma/client").$Enums.user_identifier_type_enum;
|
|
117
117
|
id: number;
|
|
118
118
|
created_at: Date;
|
|
119
119
|
updated_at: Date;
|
|
@@ -44,7 +44,7 @@ export declare class ChallengeService {
|
|
|
44
44
|
};
|
|
45
45
|
} & {
|
|
46
46
|
name: string;
|
|
47
|
-
type: import("
|
|
47
|
+
type: import(".prisma/client").$Enums.user_mfa_type_enum;
|
|
48
48
|
id: number;
|
|
49
49
|
created_at: Date;
|
|
50
50
|
updated_at: Date;
|
|
@@ -64,7 +64,7 @@ export declare class ChallengeService {
|
|
|
64
64
|
}>;
|
|
65
65
|
verifyCode(locale: string, userId: number, code: string, providedHash: string, name?: string, email?: string): Promise<{
|
|
66
66
|
name: string;
|
|
67
|
-
type: import("
|
|
67
|
+
type: import(".prisma/client").$Enums.user_mfa_type_enum;
|
|
68
68
|
id: number;
|
|
69
69
|
created_at: Date;
|
|
70
70
|
updated_at: Date;
|
|
@@ -79,7 +79,7 @@ export declare class DashboardCoreController {
|
|
|
79
79
|
labelKey: string;
|
|
80
80
|
descriptionKey: string;
|
|
81
81
|
enabled: boolean;
|
|
82
|
-
mfaTypes: import("
|
|
82
|
+
mfaTypes: import(".prisma/client").$Enums.user_mfa_type_enum[];
|
|
83
83
|
})[];
|
|
84
84
|
};
|
|
85
85
|
activityTimeline: {
|
|
@@ -174,7 +174,7 @@ export declare class DashboardCoreService {
|
|
|
174
174
|
labelKey: string;
|
|
175
175
|
descriptionKey: string;
|
|
176
176
|
enabled: boolean;
|
|
177
|
-
mfaTypes: import("
|
|
177
|
+
mfaTypes: import(".prisma/client").$Enums.user_mfa_type_enum[];
|
|
178
178
|
})[];
|
|
179
179
|
}>;
|
|
180
180
|
getActivityTimeline(userId: number): Promise<{
|
|
@@ -223,7 +223,7 @@ export declare class DashboardCoreService {
|
|
|
223
223
|
labelKey: string;
|
|
224
224
|
descriptionKey: string;
|
|
225
225
|
enabled: boolean;
|
|
226
|
-
mfaTypes: import("
|
|
226
|
+
mfaTypes: import(".prisma/client").$Enums.user_mfa_type_enum[];
|
|
227
227
|
})[];
|
|
228
228
|
};
|
|
229
229
|
activityTimeline: {
|
|
@@ -105,7 +105,7 @@ export declare class ProfileController {
|
|
|
105
105
|
id: any;
|
|
106
106
|
}): Promise<{
|
|
107
107
|
value: string;
|
|
108
|
-
type: import("
|
|
108
|
+
type: import(".prisma/client").$Enums.user_identifier_type_enum;
|
|
109
109
|
id: number;
|
|
110
110
|
created_at: Date;
|
|
111
111
|
updated_at: Date;
|
|
@@ -143,7 +143,7 @@ export declare class ProfileController {
|
|
|
143
143
|
}[];
|
|
144
144
|
user_mfa_totp: {
|
|
145
145
|
id: number;
|
|
146
|
-
secret: import("
|
|
146
|
+
secret: import(".prisma/client/runtime/library").Bytes;
|
|
147
147
|
created_at: Date;
|
|
148
148
|
updated_at: Date;
|
|
149
149
|
user_mfa_id: number;
|
|
@@ -153,14 +153,14 @@ export declare class ProfileController {
|
|
|
153
153
|
created_at: Date;
|
|
154
154
|
updated_at: Date;
|
|
155
155
|
user_mfa_id: number;
|
|
156
|
-
credential_id: import("
|
|
157
|
-
public_key: import("
|
|
156
|
+
credential_id: import(".prisma/client/runtime/library").Bytes;
|
|
157
|
+
public_key: import(".prisma/client/runtime/library").Bytes;
|
|
158
158
|
sign_count: number;
|
|
159
159
|
last_used_at: Date | null;
|
|
160
160
|
}[];
|
|
161
161
|
} & {
|
|
162
162
|
name: string;
|
|
163
|
-
type: import("
|
|
163
|
+
type: import(".prisma/client").$Enums.user_mfa_type_enum;
|
|
164
164
|
id: number;
|
|
165
165
|
created_at: Date;
|
|
166
166
|
updated_at: Date;
|
|
@@ -172,7 +172,7 @@ export declare class ProfileController {
|
|
|
172
172
|
id: any;
|
|
173
173
|
}, mfaId: number, { name }: UpdateDto): Promise<{
|
|
174
174
|
name: string;
|
|
175
|
-
type: import("
|
|
175
|
+
type: import(".prisma/client").$Enums.user_mfa_type_enum;
|
|
176
176
|
id: number;
|
|
177
177
|
created_at: Date;
|
|
178
178
|
updated_at: Date;
|
|
@@ -46,7 +46,7 @@ export declare class ProfileService {
|
|
|
46
46
|
}>;
|
|
47
47
|
getEmailIdentifier(userId: number): Promise<{
|
|
48
48
|
value: string;
|
|
49
|
-
type: import("
|
|
49
|
+
type: import(".prisma/client").$Enums.user_identifier_type_enum;
|
|
50
50
|
id: number;
|
|
51
51
|
created_at: Date;
|
|
52
52
|
updated_at: Date;
|
|
@@ -75,7 +75,7 @@ export declare class ProfileService {
|
|
|
75
75
|
}[];
|
|
76
76
|
user_mfa_totp: {
|
|
77
77
|
id: number;
|
|
78
|
-
secret: import("
|
|
78
|
+
secret: import(".prisma/client/runtime/library").Bytes;
|
|
79
79
|
created_at: Date;
|
|
80
80
|
updated_at: Date;
|
|
81
81
|
user_mfa_id: number;
|
|
@@ -85,14 +85,14 @@ export declare class ProfileService {
|
|
|
85
85
|
created_at: Date;
|
|
86
86
|
updated_at: Date;
|
|
87
87
|
user_mfa_id: number;
|
|
88
|
-
credential_id: import("
|
|
89
|
-
public_key: import("
|
|
88
|
+
credential_id: import(".prisma/client/runtime/library").Bytes;
|
|
89
|
+
public_key: import(".prisma/client/runtime/library").Bytes;
|
|
90
90
|
sign_count: number;
|
|
91
91
|
last_used_at: Date | null;
|
|
92
92
|
}[];
|
|
93
93
|
} & {
|
|
94
94
|
name: string;
|
|
95
|
-
type: import("
|
|
95
|
+
type: import(".prisma/client").$Enums.user_mfa_type_enum;
|
|
96
96
|
id: number;
|
|
97
97
|
created_at: Date;
|
|
98
98
|
updated_at: Date;
|
|
@@ -102,7 +102,7 @@ export declare class ProfileService {
|
|
|
102
102
|
})[]>;
|
|
103
103
|
updateMFA(userId: number, mfaId: number, { name }: UpdateDto): Promise<{
|
|
104
104
|
name: string;
|
|
105
|
-
type: import("
|
|
105
|
+
type: import(".prisma/client").$Enums.user_mfa_type_enum;
|
|
106
106
|
id: number;
|
|
107
107
|
created_at: Date;
|
|
108
108
|
updated_at: Date;
|
|
@@ -23,10 +23,10 @@ export declare class SessionController {
|
|
|
23
23
|
}>;
|
|
24
24
|
revokeAllOtherSessions({ id }: {
|
|
25
25
|
id: any;
|
|
26
|
-
}, sessionId: number): Promise<import("
|
|
26
|
+
}, sessionId: number): Promise<import(".prisma/client").Prisma.BatchPayload>;
|
|
27
27
|
revokeAllSessions({ id }: {
|
|
28
28
|
id: any;
|
|
29
|
-
}): Promise<import("
|
|
29
|
+
}): Promise<import(".prisma/client").Prisma.BatchPayload>;
|
|
30
30
|
revokeSession({ id: userId }: {
|
|
31
31
|
id: any;
|
|
32
32
|
}, sessionId: number, locale: string): Promise<{
|
|
@@ -42,7 +42,7 @@ export declare class SessionService {
|
|
|
42
42
|
user_agent: string;
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
|
-
deleteRefreshTokenCookie(res: any, refreshToken: string): Promise<import("
|
|
45
|
+
deleteRefreshTokenCookie(res: any, refreshToken: string): Promise<import(".prisma/client").Prisma.BatchPayload>;
|
|
46
46
|
getUserSessions(paginationParams: PaginationDTO, userId: number, locale: string): Promise<{
|
|
47
47
|
data: any[];
|
|
48
48
|
total: any;
|
|
@@ -59,8 +59,8 @@ export declare class SessionService {
|
|
|
59
59
|
}>;
|
|
60
60
|
private fetchGeoByIp;
|
|
61
61
|
private markRevokedByFilter;
|
|
62
|
-
revokeAllOtherSessions(userId: number, sessionId: number): Promise<import("
|
|
63
|
-
revokeAllSessions(userId: number): Promise<import("
|
|
62
|
+
revokeAllOtherSessions(userId: number, sessionId: number): Promise<import(".prisma/client").Prisma.BatchPayload>;
|
|
63
|
+
revokeAllSessions(userId: number): Promise<import(".prisma/client").Prisma.BatchPayload>;
|
|
64
64
|
revokeUserSession(userId: number, sessionId: number, locale: string): Promise<{
|
|
65
65
|
id: number;
|
|
66
66
|
hash: string;
|
|
@@ -60,13 +60,13 @@ export declare class SettingsController {
|
|
|
60
60
|
}>;
|
|
61
61
|
get(settingId: number): Promise<{
|
|
62
62
|
value: string | null;
|
|
63
|
-
type: import("
|
|
63
|
+
type: import(".prisma/client").$Enums.setting_type_enum;
|
|
64
64
|
id: number;
|
|
65
65
|
created_at: Date;
|
|
66
66
|
updated_at: Date;
|
|
67
67
|
slug: string;
|
|
68
68
|
group_id: number;
|
|
69
|
-
component: import("
|
|
69
|
+
component: import(".prisma/client").$Enums.setting_component_enum;
|
|
70
70
|
user_override: boolean;
|
|
71
71
|
}>;
|
|
72
72
|
importSettings(locale: string, file: MulterFile): Promise<{
|
|
@@ -82,13 +82,13 @@ export declare class SettingsController {
|
|
|
82
82
|
}>;
|
|
83
83
|
create(locale: string, data: CreateDTO): Promise<{
|
|
84
84
|
value: string | null;
|
|
85
|
-
type: import("
|
|
85
|
+
type: import(".prisma/client").$Enums.setting_type_enum;
|
|
86
86
|
id: number;
|
|
87
87
|
created_at: Date;
|
|
88
88
|
updated_at: Date;
|
|
89
89
|
slug: string;
|
|
90
90
|
group_id: number;
|
|
91
|
-
component: import("
|
|
91
|
+
component: import(".prisma/client").$Enums.setting_component_enum;
|
|
92
92
|
user_override: boolean;
|
|
93
93
|
}>;
|
|
94
94
|
updateUserFromSlug(slug: string, { value }: SettingUserDTO, { id }: {
|
|
@@ -100,13 +100,13 @@ export declare class SettingsController {
|
|
|
100
100
|
}>;
|
|
101
101
|
updateFromSlug(slug: string, data: UpdateDTO): Promise<{
|
|
102
102
|
value: string | null;
|
|
103
|
-
type: import("
|
|
103
|
+
type: import(".prisma/client").$Enums.setting_type_enum;
|
|
104
104
|
id: number;
|
|
105
105
|
created_at: Date;
|
|
106
106
|
updated_at: Date;
|
|
107
107
|
slug: string;
|
|
108
108
|
group_id: number;
|
|
109
|
-
component: import("
|
|
109
|
+
component: import(".prisma/client").$Enums.setting_component_enum;
|
|
110
110
|
user_override: boolean;
|
|
111
111
|
}>;
|
|
112
112
|
setManySettings(data: SettingDTO): Promise<{
|
|
@@ -114,15 +114,15 @@ export declare class SettingsController {
|
|
|
114
114
|
}>;
|
|
115
115
|
update(settingId: number, data: UpdateDTO): Promise<{
|
|
116
116
|
value: string | null;
|
|
117
|
-
type: import("
|
|
117
|
+
type: import(".prisma/client").$Enums.setting_type_enum;
|
|
118
118
|
id: number;
|
|
119
119
|
created_at: Date;
|
|
120
120
|
updated_at: Date;
|
|
121
121
|
slug: string;
|
|
122
122
|
group_id: number;
|
|
123
|
-
component: import("
|
|
123
|
+
component: import(".prisma/client").$Enums.setting_component_enum;
|
|
124
124
|
user_override: boolean;
|
|
125
125
|
}>;
|
|
126
|
-
delete(locale: string, data: DeleteDTO): Promise<import("
|
|
126
|
+
delete(locale: string, data: DeleteDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
|
|
127
127
|
}
|
|
128
128
|
//# sourceMappingURL=setting.controller.d.ts.map
|
|
@@ -61,24 +61,24 @@ export declare class SettingService {
|
|
|
61
61
|
}>;
|
|
62
62
|
get(settingId: number): Promise<{
|
|
63
63
|
value: string | null;
|
|
64
|
-
type: import("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
221
|
+
type: import(".prisma/client").$Enums.user_identifier_type_enum;
|
|
222
222
|
id: number;
|
|
223
223
|
created_at: Date;
|
|
224
224
|
updated_at: Date;
|