@xuda.io/account_module 1.2.1874 → 1.2.1877

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 +22 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2698,6 +2698,28 @@ export const pin_contact = async function (req) {
2698
2698
  }
2699
2699
  };
2700
2700
 
2701
+ export const set_contact_deep_research = async function (req) {
2702
+ const { uid, contact_id } = req;
2703
+ try {
2704
+ var contact_doc = await get_contact(uid, contact_id);
2705
+ contact_doc.deep_research = true;
2706
+
2707
+ const contact_save_ret = await save_contact(uid, contact_doc);
2708
+
2709
+ // save attachments
2710
+ // summarized_body
2711
+ // update_conversation_mood_level
2712
+ // attachment_handler
2713
+
2714
+ return contact_save_ret;
2715
+ } catch (err) {
2716
+ return {
2717
+ code: -24,
2718
+ data: err.message,
2719
+ };
2720
+ }
2721
+ };
2722
+
2701
2723
  export const unpin_contact = async function (req) {
2702
2724
  const { contact_id, uid } = req;
2703
2725
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1874",
3
+ "version": "1.2.1877",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {