@xuda.io/account_module 1.2.1711 → 1.2.1712

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.
Files changed (2) hide show
  1. package/index.mjs +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2079,7 +2079,7 @@ export const add_contact = async function (req, job_id, headers) {
2079
2079
  /////////////////
2080
2080
 
2081
2081
  let is_spam = false;
2082
-
2082
+ let account_type_info;
2083
2083
  let account_type;
2084
2084
  let cached_contact;
2085
2085
  if (contact_uid) {
@@ -2104,6 +2104,7 @@ export const add_contact = async function (req, job_id, headers) {
2104
2104
  is_spam = await ai_module.is_spam_email(uid, email, metadata.subject, account_profile_info);
2105
2105
  }
2106
2106
 
2107
+ account_type_info = await ai_module.analyze_email_account_type(uid, contact_obj.name, contact_obj.email, account_profile_info, metadata?.summarized_body);
2107
2108
  const is_business = await ai_module.is_business_contact(uid, email, name, metadata.subject, metadata.summarized_body, account_profile_info);
2108
2109
  account_type = is_business ? 'business' : 'personal';
2109
2110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1711",
3
+ "version": "1.2.1712",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {