@xuda.io/ai_module 1.1.4093 → 1.1.4095
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 +11 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1920,7 +1920,7 @@ export const delete_ai_chat = async function (req) {
|
|
|
1920
1920
|
let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
|
|
1921
1921
|
|
|
1922
1922
|
if (conversation_doc.stat !== 5) {
|
|
1923
|
-
throw new Error('document
|
|
1923
|
+
throw new Error('A document can only be deleted after it has been archived');
|
|
1924
1924
|
}
|
|
1925
1925
|
|
|
1926
1926
|
let save_ret;
|
|
@@ -2556,7 +2556,7 @@ export const delete_ai_agent = async function (req) {
|
|
|
2556
2556
|
let prog_doc = await db_module.get_app_couch_doc_native(app_id, agent_id);
|
|
2557
2557
|
|
|
2558
2558
|
if (prog_doc.stat !== 5) {
|
|
2559
|
-
throw new Error('document
|
|
2559
|
+
throw new Error('A document can only be deleted after it has been archived');
|
|
2560
2560
|
}
|
|
2561
2561
|
|
|
2562
2562
|
let save_ret;
|
|
@@ -2698,7 +2698,7 @@ export const delete_mini_app = async function (req) {
|
|
|
2698
2698
|
let prog_doc = await db_module.get_app_couch_doc_native(app_id, prog_id);
|
|
2699
2699
|
|
|
2700
2700
|
if (prog_doc.stat !== 5) {
|
|
2701
|
-
throw new Error('document
|
|
2701
|
+
throw new Error('A document can only be deleted after it has been archived');
|
|
2702
2702
|
}
|
|
2703
2703
|
|
|
2704
2704
|
let save_ret;
|
|
@@ -6035,6 +6035,14 @@ export const get_ai_workspace_pending_counts = async function (req, job_id, head
|
|
|
6035
6035
|
data['contacts'] = item.value;
|
|
6036
6036
|
break;
|
|
6037
6037
|
|
|
6038
|
+
case 'account_profile':
|
|
6039
|
+
data['account_profile'] = item.value;
|
|
6040
|
+
break;
|
|
6041
|
+
|
|
6042
|
+
case 'user_drive':
|
|
6043
|
+
data['user_drive'] = item.value;
|
|
6044
|
+
break;
|
|
6045
|
+
|
|
6038
6046
|
default:
|
|
6039
6047
|
break;
|
|
6040
6048
|
}
|