@hexabot-ai/api 3.2.4 → 3.2.5
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/config/index.js +1 -1
- package/dist/config/index.js.map +1 -1
- package/dist/mailer/mailer.service.d.ts +9 -1
- package/dist/mailer/mailer.service.js +3 -7
- package/dist/mailer/mailer.service.js.map +1 -1
- package/dist/static/assets/{browser-ponyfill-DhVZxpvu.js → browser-ponyfill-Bj1wNsDw.js} +1 -1
- package/dist/static/assets/{cssMode-B7czf8m_.js → cssMode-BMKUL7I_.js} +1 -1
- package/dist/static/assets/{freemarker2-sX7CP09a.js → freemarker2-DIk3wF78.js} +1 -1
- package/dist/static/assets/{handlebars-BfeDEYiM.js → handlebars-Nrhd9n0w.js} +1 -1
- package/dist/static/assets/{html-BGT7kcoZ.js → html-CwnzbLS6.js} +1 -1
- package/dist/static/assets/{htmlMode-BHRj50gQ.js → htmlMode-ClLrVyGU.js} +1 -1
- package/dist/static/assets/{index--ZHMc4gF.js → index-CAZxQsUL.js} +2071 -2071
- package/dist/static/assets/{index-BbLr1ieK.css → index-D0A768T3.css} +1 -1
- package/dist/static/assets/{javascript-BHtELMeM.js → javascript-BX6TsZ6r.js} +1 -1
- package/dist/static/assets/{jsonMode-ZxEJDG58.js → jsonMode-C-LGXH6f.js} +1 -1
- package/dist/static/assets/{liquid-xDAkaqm1.js → liquid-CaOm2I9P.js} +1 -1
- package/dist/static/assets/{lspLanguageFeatures-COe6pbco.js → lspLanguageFeatures-BvcWhZLF.js} +1 -1
- package/dist/static/assets/{mdx-EKSYt-p_.js → mdx-Cxiw73My.js} +1 -1
- package/dist/static/assets/{python-DBrUPvCj.js → python-CmySSdz5.js} +1 -1
- package/dist/static/assets/{razor-InDPZAGk.js → razor-BurbZC0s.js} +1 -1
- package/dist/static/assets/{tsMode-BpkGYMwy.js → tsMode-BsTv7GDD.js} +1 -1
- package/dist/static/assets/{typescript-CT3d2mAx.js → typescript-DHhc1YTM.js} +1 -1
- package/dist/static/assets/{xml-D7VVWZHB.js → xml-A3EFC0Z7.js} +1 -1
- package/dist/static/assets/{yaml-BA_4AjHB.js → yaml-C4fLIe3k.js} +1 -1
- package/dist/static/index.html +2 -2
- package/dist/static/locales/en/translation.json +2 -1
- package/dist/static/locales/fr/translation.json +2 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/services/passwordReset.service.js +1 -1
- package/dist/user/services/validate-account.service.js +1 -1
- package/package.json +5 -4
- package/src/config/index.ts +1 -1
- package/src/mailer/mailer.service.ts +12 -8
- package/src/user/services/passwordReset.service.ts +1 -1
- package/src/user/services/validate-account.service.ts +1 -1
|
@@ -53,7 +53,7 @@ let PasswordResetService = class PasswordResetService {
|
|
|
53
53
|
appName: config_1.config.parameters.appName,
|
|
54
54
|
appUrl: config_1.config.uiBaseUrl,
|
|
55
55
|
token: jwt,
|
|
56
|
-
|
|
56
|
+
first_name: user.firstName,
|
|
57
57
|
t: (key) => this.i18n.t(key, { lang: defaultLanguage.code }),
|
|
58
58
|
},
|
|
59
59
|
subject: this.i18n.t('password_reset_subject'),
|
|
@@ -52,7 +52,7 @@ let ValidateAccountService = class ValidateAccountService {
|
|
|
52
52
|
appName: config_1.config.parameters.appName,
|
|
53
53
|
appUrl: config_1.config.uiBaseUrl,
|
|
54
54
|
token: confirmationToken,
|
|
55
|
-
|
|
55
|
+
first_name: dto.firstName,
|
|
56
56
|
t: (key) => this.i18n.t(key, { lang: defaultLanguage.code }),
|
|
57
57
|
},
|
|
58
58
|
subject: this.i18n.t('account_confirmation_subject'),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hexabot-ai/api",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.5",
|
|
5
5
|
"description": "Hexabot is a solution for creating and managing chatbots across multiple channels, leveraging AI for advanced conversational capabilities. It provides a user-friendly interface for building, training, and deploying chatbots with integrated support for various messaging platforms.",
|
|
6
6
|
"author": "Hexastack",
|
|
7
7
|
"license": "FCL-1.0-ALv2",
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
"typeorm": "^0.3.28",
|
|
94
94
|
"yaml": "^2.8.3",
|
|
95
95
|
"zod": "^4.3.6",
|
|
96
|
-
"@hexabot-ai/agentic": "3.1.
|
|
97
|
-
"@hexabot-ai/types": "3.0.
|
|
96
|
+
"@hexabot-ai/agentic": "3.1.5",
|
|
97
|
+
"@hexabot-ai/types": "3.0.5"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@compodoc/compodoc": "^1.2.1",
|
|
@@ -111,6 +111,7 @@
|
|
|
111
111
|
"@types/json-schema": "^7.0.15",
|
|
112
112
|
"@types/lodash": "^4.17.20",
|
|
113
113
|
"@types/mjml": "^5.0.0",
|
|
114
|
+
"@types/mjml-core": "^5.0.0",
|
|
114
115
|
"@types/module-alias": "^2.0.4",
|
|
115
116
|
"@types/multer": "^2.0.0",
|
|
116
117
|
"@types/node": "^20.3.1",
|
|
@@ -145,7 +146,7 @@
|
|
|
145
146
|
"tsconfig-paths": "^4.2.0",
|
|
146
147
|
"tsconfig-paths-jest": "^0.0.1",
|
|
147
148
|
"typescript": "^5.1.3",
|
|
148
|
-
"@hexabot-ai/frontend": "3.2.
|
|
149
|
+
"@hexabot-ai/frontend": "3.2.5"
|
|
149
150
|
},
|
|
150
151
|
"optionalDependencies": {
|
|
151
152
|
"@css-inline/css-inline-linux-arm64-musl": "^0.14.1",
|
package/src/config/index.ts
CHANGED
|
@@ -77,7 +77,7 @@ export const config: Config = {
|
|
|
77
77
|
/^\/auth\/logout$/, // logout
|
|
78
78
|
/^\/mcp$/, // MCP Streamable HTTP endpoint
|
|
79
79
|
/^\/webhook\//, // Any webhook channel
|
|
80
|
-
/^\/reset(\/[^\/]+)?$/, // Reset request / Change password
|
|
80
|
+
/^\/user\/reset(\/[^\/]+)?$/, // Reset request / Change password
|
|
81
81
|
],
|
|
82
82
|
},
|
|
83
83
|
sockets: {
|
|
@@ -19,9 +19,17 @@ import SMTPTransport from 'nodemailer/lib/smtp-transport';
|
|
|
19
19
|
|
|
20
20
|
import { config } from '@/config';
|
|
21
21
|
|
|
22
|
+
interface SendMailOptionsContext {
|
|
23
|
+
appName: string;
|
|
24
|
+
appUrl: string;
|
|
25
|
+
token: string;
|
|
26
|
+
first_name: string;
|
|
27
|
+
t: (key: string) => void;
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
export type SendMailOptions = NodemailerSendMailOptions & {
|
|
23
31
|
template?: string;
|
|
24
|
-
context?:
|
|
32
|
+
context?: SendMailOptionsContext;
|
|
25
33
|
};
|
|
26
34
|
|
|
27
35
|
@Injectable()
|
|
@@ -68,7 +76,7 @@ export class MailerService {
|
|
|
68
76
|
|
|
69
77
|
private async renderTemplate(
|
|
70
78
|
template: string,
|
|
71
|
-
context
|
|
79
|
+
context?: SendMailOptionsContext,
|
|
72
80
|
): Promise<string> {
|
|
73
81
|
const templatePath = path.join(
|
|
74
82
|
process.cwd(),
|
|
@@ -77,12 +85,8 @@ export class MailerService {
|
|
|
77
85
|
template,
|
|
78
86
|
);
|
|
79
87
|
const content = await readFile(templatePath, 'utf-8');
|
|
80
|
-
const compiledHandlebars = Handlebars.compile(content)(
|
|
81
|
-
|
|
82
|
-
appUrl: config.uiBaseUrl,
|
|
83
|
-
...context,
|
|
84
|
-
});
|
|
85
|
-
const { errors, html } = mjml2html(compiledHandlebars);
|
|
88
|
+
const compiledHandlebars = Handlebars.compile(content)(context);
|
|
89
|
+
const { errors, html } = await mjml2html(compiledHandlebars);
|
|
86
90
|
|
|
87
91
|
if (errors.length) {
|
|
88
92
|
throw new Error('Unable to compile mjml template');
|
|
@@ -67,7 +67,7 @@ export class PasswordResetService {
|
|
|
67
67
|
appName: config.parameters.appName,
|
|
68
68
|
appUrl: config.uiBaseUrl,
|
|
69
69
|
token: jwt,
|
|
70
|
-
|
|
70
|
+
first_name: user.firstName,
|
|
71
71
|
t: (key: string) => this.i18n.t(key, { lang: defaultLanguage.code }),
|
|
72
72
|
},
|
|
73
73
|
subject: this.i18n.t('password_reset_subject'),
|
|
@@ -83,7 +83,7 @@ export class ValidateAccountService {
|
|
|
83
83
|
appName: config.parameters.appName,
|
|
84
84
|
appUrl: config.uiBaseUrl,
|
|
85
85
|
token: confirmationToken,
|
|
86
|
-
|
|
86
|
+
first_name: dto.firstName,
|
|
87
87
|
t: (key: string) => this.i18n.t(key, { lang: defaultLanguage.code }),
|
|
88
88
|
},
|
|
89
89
|
subject: this.i18n.t('account_confirmation_subject'),
|