@hedhog/admin 0.51.16 → 0.51.21
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/admin.module.d.ts.map +1 -1
- package/dist/admin.module.js +5 -0
- package/dist/admin.module.js.map +1 -1
- package/dist/auth/auth.controller.d.ts +12 -6
- package/dist/auth/auth.controller.d.ts.map +1 -1
- package/dist/auth/auth.controller.js +57 -24
- package/dist/auth/auth.controller.js.map +1 -1
- package/dist/auth/auth.module.d.ts.map +1 -1
- package/dist/auth/auth.module.js +4 -0
- package/dist/auth/auth.module.js.map +1 -1
- package/dist/auth/auth.service.d.ts +19 -10
- package/dist/auth/auth.service.d.ts.map +1 -1
- package/dist/auth/auth.service.js +104 -45
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +11 -11
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +11 -11
- 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/menu/menu.controller.d.ts +3 -3
- package/dist/menu/menu.service.d.ts +3 -3
- package/dist/setting/setting.service.d.ts.map +1 -1
- package/dist/setting/setting.service.js +17 -11
- package/dist/setting/setting.service.js.map +1 -1
- package/frontend/dashboard/components/create-panel.tsx.ejs +63 -63
- package/frontend/dashboard/components/dashboard.screen.tsx.ejs +116 -116
- package/frontend/dashboard/components/update-panel.tsx.ejs +80 -80
- package/frontend/dashboard/locales/en/dashboard.dashboard.json +11 -11
- package/frontend/dashboard/locales/pt/dashboard.dashboard.json +11 -11
- package/frontend/dashboard/react-query/handlers.ts.ejs +28 -28
- package/frontend/dashboard/react-query/requests.ts.ejs +56 -56
- package/frontend/dashboard-component/components/create-panel.tsx.ejs +130 -130
- package/frontend/dashboard-component/components/update-panel.tsx.ejs +164 -164
- package/frontend/dashboard-component/locales/en/dashboard.dashboard-component.json +11 -11
- package/frontend/dashboard-component/locales/pt/dashboard.dashboard-component.json +11 -11
- package/frontend/dashboard-component/react-query/handlers.ts.ejs +28 -28
- package/frontend/dashboard-component/react-query/requests.ts.ejs +61 -61
- package/frontend/dashboard-item/components/create-panel.tsx.ejs +108 -108
- package/frontend/dashboard-item/components/update-panel.tsx.ejs +141 -141
- package/frontend/dashboard-item/locales/en/dashboard.dashboard-item.json +11 -11
- package/frontend/dashboard-item/locales/pt/dashboard.dashboard-item.json +11 -11
- package/frontend/dashboard-item/react-query/handlers.ts.ejs +28 -28
- package/frontend/dashboard-item/react-query/requests.ts.ejs +58 -58
- package/frontend/dashboard-user/components/create-panel.tsx.ejs +108 -108
- package/frontend/dashboard-user/components/update-panel.tsx.ejs +137 -137
- package/frontend/dashboard-user/locales/en/dashboard.dashboard-user.json +11 -11
- package/frontend/dashboard-user/locales/pt/dashboard.dashboard-user.json +11 -11
- package/frontend/dashboard-user/react-query/handlers.ts.ejs +28 -28
- package/frontend/dashboard-user/react-query/requests.ts.ejs +58 -58
- package/hedhog.yaml +2 -2
- package/package.json +7 -6
- package/src/admin.module.ts +5 -0
- package/src/auth/auth.controller.ts +37 -11
- package/src/auth/auth.module.ts +4 -0
- package/src/auth/auth.service.ts +154 -63
- package/src/dashboard/dashboard-component/dashboard-component.controller.ts +55 -55
- package/src/dashboard/dashboard-component/dto/create.dto.ts +36 -36
- package/src/dashboard/dashboard-component/dto/update.dto.ts +4 -4
- package/src/dashboard/dashboard-item/dto/update.dto.ts +4 -4
- package/src/dashboard/dashboard-user/dto/update.dto.ts +4 -4
- package/src/dashboard/index.ts +1 -1
- package/src/setting/setting.service.ts +16 -11
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":"AAkBA,qBAgCa,WAAW;CAAG"}
|
package/dist/admin.module.js
CHANGED
@@ -9,8 +9,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.AdminModule = void 0;
|
10
10
|
const locale_1 = require("@hedhog/locale");
|
11
11
|
const mail_1 = require("@hedhog/mail");
|
12
|
+
const mail_manager_1 = require("@hedhog/mail-manager");
|
12
13
|
const pagination_1 = require("@hedhog/pagination");
|
13
14
|
const prisma_1 = require("@hedhog/prisma");
|
15
|
+
const axios_1 = require("@nestjs/axios");
|
14
16
|
const common_1 = require("@nestjs/common");
|
15
17
|
const config_1 = require("@nestjs/config");
|
16
18
|
const auth_module_1 = require("./auth/auth.module");
|
@@ -28,10 +30,12 @@ exports.AdminModule = AdminModule;
|
|
28
30
|
exports.AdminModule = AdminModule = __decorate([
|
29
31
|
(0, common_1.Module)({
|
30
32
|
imports: [
|
33
|
+
axios_1.HttpModule,
|
31
34
|
config_1.ConfigModule.forRoot(),
|
32
35
|
(0, common_1.forwardRef)(() => auth_module_1.AuthModule),
|
33
36
|
(0, common_1.forwardRef)(() => dashboard_module_1.DashboardModule),
|
34
37
|
(0, common_1.forwardRef)(() => mail_1.MailModule),
|
38
|
+
(0, common_1.forwardRef)(() => mail_manager_1.MailManagerModule),
|
35
39
|
(0, common_1.forwardRef)(() => menu_module_1.MenuModule),
|
36
40
|
(0, common_1.forwardRef)(() => pagination_1.PaginationModule),
|
37
41
|
(0, common_1.forwardRef)(() => role_module_1.RoleModule),
|
@@ -47,6 +51,7 @@ exports.AdminModule = AdminModule = __decorate([
|
|
47
51
|
user_module_1.UserModule,
|
48
52
|
auth_module_1.AuthModule,
|
49
53
|
mail_1.MailModule,
|
54
|
+
mail_manager_1.MailManagerModule,
|
50
55
|
route_module_1.RouteModule,
|
51
56
|
role_module_1.RoleModule,
|
52
57
|
menu_module_1.MenuModule,
|
package/dist/admin.module.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"admin.module.js","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":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CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC;SAChC;QACD,OAAO,EAAE;YACP,wBAAU;YACV,wBAAU;YACV,iBAAU;YACV,gCAAiB;YACjB,0BAAW;YACX,wBAAU;YACV,wBAAU;YACV,4BAAY;YACZ,qBAAY;YACZ,8BAAa;SACd;KACF,CAAC;GACW,WAAW,CAAG"}
|
@@ -16,7 +16,7 @@ export declare class AuthController {
|
|
16
16
|
id: number;
|
17
17
|
email: string;
|
18
18
|
}>;
|
19
|
-
createUser(data: CreateUserDTO): Promise<{
|
19
|
+
createUser(Locale: any, data: CreateUserDTO): Promise<{
|
20
20
|
token: string;
|
21
21
|
}>;
|
22
22
|
verify({ id }: UserType): Promise<{
|
@@ -29,7 +29,7 @@ export declare class AuthController {
|
|
29
29
|
email: string;
|
30
30
|
password: string;
|
31
31
|
}>;
|
32
|
-
login({ email, password }: LoginDTO): Promise<{
|
32
|
+
login(locale: string, { email, password }: LoginDTO): Promise<{
|
33
33
|
token: string;
|
34
34
|
} | {
|
35
35
|
token: string;
|
@@ -44,19 +44,19 @@ export declare class AuthController {
|
|
44
44
|
loginRecoveryCode({ token, code }: LoginWithCodeDTO): Promise<{
|
45
45
|
token: string;
|
46
46
|
}>;
|
47
|
-
forget({ email, }: ForgetDTO & {
|
47
|
+
forget(locale: string, { email, }: ForgetDTO & {
|
48
48
|
subject: string;
|
49
49
|
body: string;
|
50
50
|
}): Promise<{
|
51
51
|
message: string;
|
52
52
|
}>;
|
53
|
-
reset({ newPassword, confirmNewPassword, code }: ResetDTO): Promise<false | {
|
53
|
+
reset(locale: string, { newPassword, confirmNewPassword, code }: ResetDTO): Promise<false | {
|
54
54
|
token: string;
|
55
55
|
}>;
|
56
|
-
changePassword({ email, currentPassword, newPassword, confirmNewPassword }: ChangeDTO): Promise<{
|
56
|
+
changePassword(locale: string, { email, currentPassword, newPassword, confirmNewPassword }: ChangeDTO): Promise<{
|
57
57
|
token: string;
|
58
58
|
}>;
|
59
|
-
changeEmail({ currentEmail, password, newEmail }: EmailDTO): Promise<{
|
59
|
+
changeEmail(locale: string, { currentEmail, password, newEmail }: EmailDTO): Promise<{
|
60
60
|
token: string;
|
61
61
|
}>;
|
62
62
|
removeMfa({ id }: {
|
@@ -79,5 +79,11 @@ export declare class AuthController {
|
|
79
79
|
}): Promise<{
|
80
80
|
token: string;
|
81
81
|
}>;
|
82
|
+
loginGoogle(res: any): Promise<any>;
|
83
|
+
callbackGoogle({ code }: {
|
84
|
+
code: string;
|
85
|
+
}): Promise<{
|
86
|
+
token: string;
|
87
|
+
}>;
|
82
88
|
}
|
83
89
|
//# sourceMappingURL=auth.controller.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.controller.d.ts","sourceRoot":"","sources":["../../src/auth/auth.controller.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"auth.controller.d.ts","sourceRoot":"","sources":["../../src/auth/auth.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,O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AA,EAAU,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;;IAK9D,WAAW,CAAS,EAAE,EAAE,EAAE;;KAAA;;;;IAK1B,SAAS,CAAS,EAAE,EAAE,EAAE;;KAAA,EAAU,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;;IAO9D,WAAW,CAAQ,GAAG,KAAA;IAMtB,cAAc,CAAU,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;;;CAGzD"}
|
@@ -14,6 +14,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
15
|
exports.AuthController = void 0;
|
16
16
|
const core_1 = require("@hedhog/core");
|
17
|
+
const locale_1 = require("@hedhog/locale");
|
17
18
|
const common_1 = require("@nestjs/common");
|
18
19
|
const auth_service_1 = require("./auth.service");
|
19
20
|
const change_dto_1 = require("./dto/change.dto");
|
@@ -30,14 +31,14 @@ let AuthController = class AuthController {
|
|
30
31
|
async createUserCheck(code) {
|
31
32
|
return this.service.createUserCheck(code);
|
32
33
|
}
|
33
|
-
async createUser(data) {
|
34
|
-
return this.service.createUser(data);
|
34
|
+
async createUser(Locale, data) {
|
35
|
+
return this.service.createUser(Locale, data);
|
35
36
|
}
|
36
37
|
async verify({ id }) {
|
37
38
|
return this.service.verify(id);
|
38
39
|
}
|
39
|
-
async login({ email, password }) {
|
40
|
-
return this.service.login({ email, password });
|
40
|
+
async login(locale, { email, password }) {
|
41
|
+
return this.service.login(locale, { email, password });
|
41
42
|
}
|
42
43
|
async register({ email, password, name, code, multifactor_id }) {
|
43
44
|
return this.service.register({
|
@@ -54,28 +55,32 @@ let AuthController = class AuthController {
|
|
54
55
|
async loginRecoveryCode({ token, code }) {
|
55
56
|
return this.service.loginRecoveryCode({ token, code });
|
56
57
|
}
|
57
|
-
async forget({ email, }) {
|
58
|
-
return this.service.forget({
|
58
|
+
async forget(locale, { email, }) {
|
59
|
+
return this.service.forget(locale, {
|
59
60
|
email,
|
60
61
|
});
|
61
62
|
}
|
62
|
-
async reset({ newPassword, confirmNewPassword, code }) {
|
63
|
-
return this.service.resetPassword({
|
63
|
+
async reset(locale, { newPassword, confirmNewPassword, code }) {
|
64
|
+
return this.service.resetPassword(locale, {
|
64
65
|
newPassword,
|
65
66
|
confirmNewPassword,
|
66
67
|
code,
|
67
68
|
});
|
68
69
|
}
|
69
|
-
async changePassword({ email, currentPassword, newPassword, confirmNewPassword }) {
|
70
|
-
return this.service.changePassword({
|
70
|
+
async changePassword(locale, { email, currentPassword, newPassword, confirmNewPassword }) {
|
71
|
+
return this.service.changePassword(locale, {
|
71
72
|
email,
|
72
73
|
currentPassword,
|
73
74
|
newPassword,
|
74
75
|
confirmNewPassword,
|
75
76
|
});
|
76
77
|
}
|
77
|
-
async changeEmail({ currentEmail, password, newEmail }) {
|
78
|
-
return this.service.changeEmail(
|
78
|
+
async changeEmail(locale, { currentEmail, password, newEmail }) {
|
79
|
+
return this.service.changeEmail(locale, {
|
80
|
+
currentEmail,
|
81
|
+
password,
|
82
|
+
newEmail,
|
83
|
+
});
|
79
84
|
}
|
80
85
|
async removeMfa({ id }, { token }) {
|
81
86
|
return this.service.removeMfa(id, token);
|
@@ -87,6 +92,12 @@ let AuthController = class AuthController {
|
|
87
92
|
console.log('mfa-verify');
|
88
93
|
return this.service.verifyMfa(id, token);
|
89
94
|
}
|
95
|
+
async loginGoogle(res) {
|
96
|
+
return this.service.loginGoogle(res);
|
97
|
+
}
|
98
|
+
async callbackGoogle({ code }) {
|
99
|
+
return this.service.callbackGoogle(code);
|
100
|
+
}
|
90
101
|
};
|
91
102
|
exports.AuthController = AuthController;
|
92
103
|
__decorate([
|
@@ -100,9 +111,10 @@ __decorate([
|
|
100
111
|
__decorate([
|
101
112
|
(0, core_1.Public)(),
|
102
113
|
(0, common_1.Post)('create-user'),
|
103
|
-
__param(0, (0,
|
114
|
+
__param(0, (0, locale_1.Locale)()),
|
115
|
+
__param(1, (0, common_1.Body)()),
|
104
116
|
__metadata("design:type", Function),
|
105
|
-
__metadata("design:paramtypes", [create_user_dto_1.CreateUserDTO]),
|
117
|
+
__metadata("design:paramtypes", [Object, create_user_dto_1.CreateUserDTO]),
|
106
118
|
__metadata("design:returntype", Promise)
|
107
119
|
], AuthController.prototype, "createUser", null);
|
108
120
|
__decorate([
|
@@ -116,9 +128,10 @@ __decorate([
|
|
116
128
|
__decorate([
|
117
129
|
(0, core_1.Public)(),
|
118
130
|
(0, common_1.Post)('login'),
|
119
|
-
__param(0, (0,
|
131
|
+
__param(0, (0, locale_1.Locale)()),
|
132
|
+
__param(1, (0, common_1.Body)()),
|
120
133
|
__metadata("design:type", Function),
|
121
|
-
__metadata("design:paramtypes", [login_dto_1.LoginDTO]),
|
134
|
+
__metadata("design:paramtypes", [String, login_dto_1.LoginDTO]),
|
122
135
|
__metadata("design:returntype", Promise)
|
123
136
|
], AuthController.prototype, "login", null);
|
124
137
|
__decorate([
|
@@ -148,32 +161,36 @@ __decorate([
|
|
148
161
|
__decorate([
|
149
162
|
(0, core_1.Public)(),
|
150
163
|
(0, common_1.Post)('forget'),
|
151
|
-
__param(0, (0,
|
164
|
+
__param(0, (0, locale_1.Locale)()),
|
165
|
+
__param(1, (0, common_1.Body)()),
|
152
166
|
__metadata("design:type", Function),
|
153
|
-
__metadata("design:paramtypes", [Object]),
|
167
|
+
__metadata("design:paramtypes", [String, Object]),
|
154
168
|
__metadata("design:returntype", Promise)
|
155
169
|
], AuthController.prototype, "forget", null);
|
156
170
|
__decorate([
|
157
171
|
(0, core_1.Public)(),
|
158
172
|
(0, common_1.Post)('reset'),
|
159
|
-
__param(0, (0,
|
173
|
+
__param(0, (0, locale_1.Locale)()),
|
174
|
+
__param(1, (0, common_1.Body)()),
|
160
175
|
__metadata("design:type", Function),
|
161
|
-
__metadata("design:paramtypes", [reset_dto_1.ResetDTO]),
|
176
|
+
__metadata("design:paramtypes", [String, reset_dto_1.ResetDTO]),
|
162
177
|
__metadata("design:returntype", Promise)
|
163
178
|
], AuthController.prototype, "reset", null);
|
164
179
|
__decorate([
|
165
180
|
(0, core_1.Public)(),
|
166
181
|
(0, common_1.Post)('change-password'),
|
167
|
-
__param(0, (0,
|
182
|
+
__param(0, (0, locale_1.Locale)()),
|
183
|
+
__param(1, (0, common_1.Body)()),
|
168
184
|
__metadata("design:type", Function),
|
169
|
-
__metadata("design:paramtypes", [change_dto_1.ChangeDTO]),
|
185
|
+
__metadata("design:paramtypes", [String, change_dto_1.ChangeDTO]),
|
170
186
|
__metadata("design:returntype", Promise)
|
171
187
|
], AuthController.prototype, "changePassword", null);
|
172
188
|
__decorate([
|
173
189
|
(0, common_1.Post)('change-email'),
|
174
|
-
__param(0, (0,
|
190
|
+
__param(0, (0, locale_1.Locale)()),
|
191
|
+
__param(1, (0, common_1.Body)()),
|
175
192
|
__metadata("design:type", Function),
|
176
|
-
__metadata("design:paramtypes", [email_dto_1.EmailDTO]),
|
193
|
+
__metadata("design:paramtypes", [String, email_dto_1.EmailDTO]),
|
177
194
|
__metadata("design:returntype", Promise)
|
178
195
|
], AuthController.prototype, "changeEmail", null);
|
179
196
|
__decorate([
|
@@ -199,6 +216,22 @@ __decorate([
|
|
199
216
|
__metadata("design:paramtypes", [Object, Object]),
|
200
217
|
__metadata("design:returntype", Promise)
|
201
218
|
], AuthController.prototype, "verifyMfa", null);
|
219
|
+
__decorate([
|
220
|
+
(0, core_1.Public)(),
|
221
|
+
(0, common_1.Get)('google/login'),
|
222
|
+
__param(0, (0, common_1.Res)()),
|
223
|
+
__metadata("design:type", Function),
|
224
|
+
__metadata("design:paramtypes", [Object]),
|
225
|
+
__metadata("design:returntype", Promise)
|
226
|
+
], AuthController.prototype, "loginGoogle", null);
|
227
|
+
__decorate([
|
228
|
+
(0, core_1.Public)(),
|
229
|
+
(0, common_1.Get)('google/callback'),
|
230
|
+
__param(0, (0, common_1.Query)()),
|
231
|
+
__metadata("design:type", Function),
|
232
|
+
__metadata("design:paramtypes", [Object]),
|
233
|
+
__metadata("design:returntype", Promise)
|
234
|
+
], AuthController.prototype, "callbackGoogle", null);
|
202
235
|
exports.AuthController = AuthController = __decorate([
|
203
236
|
(0, common_1.Controller)('auth'),
|
204
237
|
__param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => auth_service_1.AuthService))),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../src/auth/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uCAAkD;AAClD,
|
1
|
+
{"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../src/auth/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uCAAkD;AAClD,2CAAwC;AACxC,2CAUwB;AACxB,iDAA6C;AAC7C,iDAA6C;AAC7C,2DAAsD;AACtD,+CAA2C;AAE3C,mEAA6D;AAC7D,+CAA2C;AAC3C,qDAAiD;AACjD,+CAA2C;AAIpC,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAEmB,OAAoB;QAApB,YAAO,GAAP,OAAO,CAAa;IACpC,CAAC;IAIE,AAAN,KAAK,CAAC,eAAe,CAAgB,IAAY;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IAIK,AAAN,KAAK,CAAC,UAAU,CAAW,MAAM,EAAU,IAAmB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IAIK,AAAN,KAAK,CAAC,MAAM,CAAS,EAAE,EAAE,EAAY;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACjC,CAAC;IAIK,AAAN,KAAK,CAAC,KAAK,CAAW,MAAc,EAAU,EAAE,KAAK,EAAE,QAAQ,EAAY;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AAM,GAAE,CAAA;IACR,WAAA,IAAA,aAAI,GAAE,CAAA;;6CACsD,sBAAS;;oDAQvE;AAGK;IADL,IAAA,aAAI,EAAC,cAAc,CAAC;IAElB,WAAA,IAAA,eAAM,GAAE,CAAA;IACR,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAuC,oBAAQ;;iDAOvD;AAGK;IADL,IAAA,eAAM,EAAC,YAAY,CAAC;IACJ,WAAA,IAAA,WAAI,GAAE,CAAA;IAAU,WAAA,IAAA,aAAI,GAAE,CAAA;;;;+CAEtC;AAGK;IADL,IAAA,aAAI,EAAC,cAAc,CAAC;IACF,WAAA,IAAA,WAAI,GAAE,CAAA;;;;iDAExB;AAGK;IADL,IAAA,aAAI,EAAC,YAAY,CAAC;IACF,WAAA,IAAA,WAAI,GAAE,CAAA;IAAU,WAAA,IAAA,aAAI,GAAE,CAAA;;;;+CAGtC;AAIK;IAFL,IAAA,aAAM,GAAE;IACR,IAAA,YAAG,EAAC,cAAc,CAAC;IACD,WAAA,IAAA,YAAG,GAAE,CAAA;;;;iDAEvB;AAIK;IAFL,IAAA,aAAM,GAAE;IACR,IAAA,YAAG,EAAC,iBAAiB,CAAC;IACD,WAAA,IAAA,cAAK,GAAE,CAAA;;;;oDAE5B;yBA3IU,cAAc;IAD1B,IAAA,mBAAU,EAAC,MAAM,CAAC;IAGd,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC,CAAC,CAAA;qCACZ,0BAAW;GAH5B,cAAc,CA4I1B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.module.d.ts","sourceRoot":"","sources":["../../src/auth/auth.module.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"auth.module.d.ts","sourceRoot":"","sources":["../../src/auth/auth.module.ts"],"names":[],"mappings":"AAaA,qBAiCa,UAAU;CAAG"}
|
package/dist/auth/auth.module.js
CHANGED
@@ -8,7 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
9
9
|
exports.AuthModule = void 0;
|
10
10
|
const mail_1 = require("@hedhog/mail");
|
11
|
+
const mail_manager_1 = require("@hedhog/mail-manager");
|
11
12
|
const prisma_1 = require("@hedhog/prisma");
|
13
|
+
const axios_1 = require("@nestjs/axios");
|
12
14
|
const common_1 = require("@nestjs/common");
|
13
15
|
const config_1 = require("@nestjs/config");
|
14
16
|
const core_1 = require("@nestjs/core");
|
@@ -37,8 +39,10 @@ exports.AuthModule = AuthModule = __decorate([
|
|
37
39
|
})),
|
38
40
|
(0, common_1.forwardRef)(() => prisma_1.PrismaModule),
|
39
41
|
(0, common_1.forwardRef)(() => mail_1.MailModule),
|
42
|
+
(0, common_1.forwardRef)(() => mail_manager_1.MailManagerModule),
|
40
43
|
(0, common_1.forwardRef)(() => setting_module_1.SettingModule),
|
41
44
|
config_1.ConfigModule,
|
45
|
+
axios_1.HttpModule,
|
42
46
|
],
|
43
47
|
controllers: [auth_controller_1.AuthController],
|
44
48
|
providers: [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../src/auth/auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAA0C;AAC1C,2CAA8C;AAC9C,2CAAoD;AACpD,2CAA8C;AAC9C,uCAAyC;AACzC,qCAAwC;AACxC,8DAA0D;AAC1D,uDAAmD;AACnD,iDAA6C;AAC7C,oDAAgD;
|
1
|
+
{"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../src/auth/auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAA0C;AAC1C,uDAAyD;AACzD,2CAA8C;AAC9C,yCAA2C;AAC3C,2CAAoD;AACpD,2CAA8C;AAC9C,uCAAyC;AACzC,qCAAwC;AACxC,8DAA0D;AAC1D,uDAAmD;AACnD,iDAA6C;AAC7C,oDAAgD;AAmCzC,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IAjCtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,IAAA,mBAAU,EAAC,GAAG,EAAE,CACd,eAAS,CAAC,aAAa,CAAC;gBACtB,MAAM,EAAE,IAAI;gBACZ,UAAU,EAAE,GAAG,EAAE;oBACf,OAAO;wBACL,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;wBACtC,MAAM,EAAE,IAAI;wBACZ,WAAW,EAAE;4BACX,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,KAAK;yBAC/C;qBACF,CAAC;gBACJ,CAAC;aACF,CAAC,CACH;YACD,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,gCAAiB,CAAC;YACnC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC;YAC/B,qBAAY;YACZ,kBAAU;SACX;QACD,WAAW,EAAE,CAAC,gCAAc,CAAC;QAC7B,SAAS,EAAE;YACT,0BAAW;YACX;gBACE,OAAO,EAAE,gBAAS;gBAClB,QAAQ,EAAE,sBAAS;aACpB;SACF;QACD,OAAO,EAAE,CAAC,0BAAW,CAAC;KACvB,CAAC;GACW,UAAU,CAAG"}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { MailService } from '@hedhog/mail';
|
1
|
+
import { MailService as MailManagerService } from '@hedhog/mail-manager';
|
2
2
|
import { PrismaService } from '@hedhog/prisma';
|
3
|
+
import { HttpService } from '@nestjs/axios';
|
3
4
|
import { OnModuleInit } from '@nestjs/common';
|
4
5
|
import { ConfigService } from '@nestjs/config';
|
5
6
|
import { JwtService } from '@nestjs/jwt';
|
@@ -13,13 +14,14 @@ import { LoginDTO } from './dto/login.dto';
|
|
13
14
|
import { RegisterDTO } from './dto/register.dto';
|
14
15
|
import { ResetDTO } from './dto/reset.dto';
|
15
16
|
export declare class AuthService implements OnModuleInit {
|
17
|
+
private readonly httpService;
|
16
18
|
private readonly configService;
|
17
19
|
private readonly prisma;
|
18
20
|
private readonly jwt;
|
19
21
|
private readonly mail;
|
20
22
|
private readonly setting;
|
21
|
-
|
22
|
-
constructor(configService: ConfigService, prisma: PrismaService, jwt: JwtService, mail:
|
23
|
+
settings: Record<string, any>;
|
24
|
+
constructor(httpService: HttpService, configService: ConfigService, prisma: PrismaService, jwt: JwtService, mail: MailManagerService, setting: SettingService);
|
23
25
|
onModuleInit(): Promise<void>;
|
24
26
|
createUserCheck(code: string): Promise<{
|
25
27
|
name: string;
|
@@ -29,13 +31,13 @@ export declare class AuthService implements OnModuleInit {
|
|
29
31
|
register({ email, name, password, code, multifactor_id }: RegisterDTO): Promise<{
|
30
32
|
token: string;
|
31
33
|
}>;
|
32
|
-
createUser({ code, password, street, number, complement, district, city, state, postal_code, }: CreateUserDTO): Promise<{
|
34
|
+
createUser(locale: string, { code, password, street, number, complement, district, city, state, postal_code, }: CreateUserDTO): Promise<{
|
33
35
|
token: string;
|
34
36
|
}>;
|
35
37
|
verifyToken(token: string): Promise<any>;
|
36
38
|
generateRandomString(length: number): string;
|
37
39
|
generateRandomNumber(): number;
|
38
|
-
loginWithEmailAndPassword(email: string, password: string): Promise<{
|
40
|
+
loginWithEmailAndPassword(locale: string, email: string, password: string): Promise<{
|
39
41
|
token: string;
|
40
42
|
} | {
|
41
43
|
token: string;
|
@@ -44,16 +46,16 @@ export declare class AuthService implements OnModuleInit {
|
|
44
46
|
getToken(user: any): Promise<{
|
45
47
|
token: string;
|
46
48
|
}>;
|
47
|
-
forget({ email }: ForgetDTO): Promise<{
|
49
|
+
forget(locale: string, { email }: ForgetDTO): Promise<{
|
48
50
|
message: string;
|
49
51
|
}>;
|
50
|
-
changePassword({ email, currentPassword, newPassword, confirmNewPassword
|
52
|
+
changePassword(locale: string, { email, currentPassword, newPassword, confirmNewPassword }: ChangeDTO): Promise<{
|
51
53
|
token: string;
|
52
54
|
}>;
|
53
|
-
changeEmail({ currentEmail, password, newEmail }: EmailDTO): Promise<{
|
55
|
+
changeEmail(locale: string, { currentEmail, password, newEmail }: EmailDTO): Promise<{
|
54
56
|
token: string;
|
55
57
|
}>;
|
56
|
-
resetPassword({ code, newPassword, confirmNewPassword }: ResetDTO): Promise<false | {
|
58
|
+
resetPassword(locale: string, { code, newPassword, confirmNewPassword }: ResetDTO): Promise<false | {
|
57
59
|
token: string;
|
58
60
|
}>;
|
59
61
|
checkCodeMfa(userId: number, code: number): Promise<any>;
|
@@ -63,7 +65,7 @@ export declare class AuthService implements OnModuleInit {
|
|
63
65
|
loginCode({ token, code }: LoginWithCodeDTO): Promise<{
|
64
66
|
token: string;
|
65
67
|
}>;
|
66
|
-
login({ email, password }: LoginDTO): Promise<{
|
68
|
+
login(locale: string, { email, password }: LoginDTO): Promise<{
|
67
69
|
token: string;
|
68
70
|
} | {
|
69
71
|
token: string;
|
@@ -91,5 +93,12 @@ export declare class AuthService implements OnModuleInit {
|
|
91
93
|
verifyMfa(userId: number, token: string, verifyMultifactor?: boolean): Promise<{
|
92
94
|
token: string;
|
93
95
|
}>;
|
96
|
+
loginGoogle(res: any): Promise<any>;
|
97
|
+
callbackGoogle(code: string): Promise<{
|
98
|
+
token: string;
|
99
|
+
}>;
|
100
|
+
private fetchGoogleToken;
|
101
|
+
private fetchGoogleProfile;
|
102
|
+
private findOrCreateUser;
|
94
103
|
}
|
95
104
|
//# sourceMappingURL=auth.service.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.service.d.ts","sourceRoot":"","sources":["../../src/auth/auth.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"auth.service.d.ts","sourceRoot":"","sources":["../../src/auth/auth.service.ts"],"names":[],"mappings":"AAAA,OAAO,EA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