@xuda.io/account_module 1.2.1963 → 1.2.1965
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/index.mjs +16 -16
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2069,7 +2069,7 @@ setTimeout(async () => {
|
|
|
2069
2069
|
|
|
2070
2070
|
let ret;
|
|
2071
2071
|
|
|
2072
|
-
ret = await set_deep_research_contact({ uid, contact_id: 'cnt_c07049718613a11d164e90450d5f9902' });
|
|
2072
|
+
// ret = await set_deep_research_contact({ uid, contact_id: 'cnt_c07049718613a11d164e90450d5f9902' });
|
|
2073
2073
|
// ret = await generate_contact_avatar({ uid, contact_id: 'cnt_c07049718613a11d164e90450d5f2742' });
|
|
2074
2074
|
// ret = await not_spam_contact({ uid, contact_id: 'cnt_c07049718613a11d164e90450d5f2742' });
|
|
2075
2075
|
// ret = await get_account_ai_usage({ uid });
|
|
@@ -2892,22 +2892,22 @@ export const set_deep_research_contact = async function (req, job_id, headers) {
|
|
|
2892
2892
|
var contact_doc = await get_contact(uid, contact_id);
|
|
2893
2893
|
contact_doc.deep_research = true;
|
|
2894
2894
|
|
|
2895
|
-
if (contact_doc.account_type === 'business') {
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
}
|
|
2895
|
+
// if (contact_doc.account_type === 'business') {
|
|
2896
|
+
// contact_doc.business_info = await ai_module.get_business_info(uid, '', contact_doc.email, account_profile_info);
|
|
2897
|
+
// if (contact_doc.business_info.business_name !== 'Not available') {
|
|
2898
|
+
// contact_doc.business_has_person = await ai_module.is_business_contact_has_person(uid, contact_doc.email, contact_doc.name, contact_doc?.metadata?.subject, contact_doc?.metadata?.summarized_body, account_profile_info);
|
|
2899
|
+
// } else {
|
|
2900
|
+
// contact_doc.account_type = 'personal';
|
|
2901
|
+
// contact_doc.business_info = undefined;
|
|
2902
|
+
// }
|
|
2903
|
+
// }
|
|
2904
2904
|
|
|
2905
|
-
if (contact_doc.account_type === 'personal' || contact_doc?.business_has_person) {
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
}
|
|
2905
|
+
// if (contact_doc.account_type === 'personal' || contact_doc?.business_has_person) {
|
|
2906
|
+
// contact_doc.person_info = await ai_module.get_person_info(uid, contact_doc.name, contact_doc.email, account_profile_info, contact_doc?.metadata?.summarized_body);
|
|
2907
|
+
// if (!contact_doc.name) {
|
|
2908
|
+
// contact_doc.name = await ai_module.get_name_from_email_addr(uid, contact_doc.email, account_profile_info);
|
|
2909
|
+
// }
|
|
2910
|
+
// }
|
|
2911
2911
|
|
|
2912
2912
|
const contact_save_ret = await save_contact(uid, contact_doc);
|
|
2913
2913
|
await delete_xuda_cache(contact_doc);
|