@xuda.io/ai_module 1.1.3605 → 1.1.3607
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 +15 -16
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2317,7 +2317,6 @@ export const get_ai_agent_info = async function (uid, job_id, headers, doc, from
|
|
|
2317
2317
|
};
|
|
2318
2318
|
|
|
2319
2319
|
export const get_ai_agents = async function (req, job_id, headers) {
|
|
2320
|
-
debugger;
|
|
2321
2320
|
let { uid, _id, search, filter_type = 'all', limit, skip } = req;
|
|
2322
2321
|
|
|
2323
2322
|
try {
|
|
@@ -2392,25 +2391,25 @@ export const get_ai_agents = async function (req, job_id, headers) {
|
|
|
2392
2391
|
////// FROM - IN
|
|
2393
2392
|
let requests_from = { docs: [] };
|
|
2394
2393
|
|
|
2395
|
-
const from_opt = { selector: { docType: 'team_request', access_type: 'ai_agent', team_req_stat: 2, team_req_to_uid: uid }, fields: ['_id', 'team_req_date', 'sender_account_info.email', 'team_req_from_uid', 'share_item_id'] };
|
|
2396
|
-
const requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
|
|
2394
|
+
// const from_opt = { selector: { docType: 'team_request', access_type: 'ai_agent', team_req_stat: 2, team_req_to_uid: uid }, fields: ['_id', 'team_req_date', 'sender_account_info.email', 'team_req_from_uid', 'share_item_id'] };
|
|
2395
|
+
// const requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
|
|
2397
2396
|
|
|
2398
|
-
for await (let e of requests_from_res.docs) {
|
|
2399
|
-
|
|
2397
|
+
// for await (let e of requests_from_res.docs) {
|
|
2398
|
+
// let doc = { ts: e.team_req_date, pending: true, properties: {}, studio_meta: { createdByUid: e.team_req_from_uid }, team_req_id: e._id };
|
|
2400
2399
|
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2400
|
+
// if (e.team_req_from_uid) {
|
|
2401
|
+
// doc.user_contact = await account_module.get_user_card(uid, e.team_req_from_uid);
|
|
2402
|
+
// doc.icon_pattern = doc.user_contact.profile_avatar;
|
|
2403
|
+
// }
|
|
2405
2404
|
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2405
|
+
// //share_item_id
|
|
2406
|
+
// const app_id = await account_module.get_account_default_project_id(e.team_req_from_uid);
|
|
2407
|
+
// const miniapp_ret = await db_module.get_app_couch_doc_native(app_id, e.share_item_id);
|
|
2408
|
+
// doc.properties.menuName = miniapp_ret.properties.menuName;
|
|
2409
|
+
// doc.studio_meta.agent_image = miniapp_ret.studio_meta.agent_image;
|
|
2411
2410
|
|
|
2412
|
-
|
|
2413
|
-
}
|
|
2411
|
+
// requests_from.docs.push(doc);
|
|
2412
|
+
// }
|
|
2414
2413
|
|
|
2415
2414
|
//////////////////////
|
|
2416
2415
|
|