@xuda.io/account_module 1.2.950 → 1.2.952
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 +5 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -492,7 +492,7 @@ export const get_account_data = async function (req) {
|
|
|
492
492
|
plan_info: acc_obj.plan_info,
|
|
493
493
|
support_plan: acc_obj.support_plan,
|
|
494
494
|
support_plan_changed: acc_obj.support_plan_changed,
|
|
495
|
-
|
|
495
|
+
ai_workspace_plan: acc_obj.ai_workspace_plan,
|
|
496
496
|
storage_plan_changed: acc_obj.storage_plan_changed,
|
|
497
497
|
account_project_id: acc_obj.account_project_id,
|
|
498
498
|
isBoarded: acc_obj.isBoarded,
|
|
@@ -519,6 +519,7 @@ export const get_account_data = async function (req) {
|
|
|
519
519
|
project_data_size: acc_obj.project_data_size || 0,
|
|
520
520
|
total_drive_size: acc_obj.total_drive_size || 0,
|
|
521
521
|
},
|
|
522
|
+
ai_agents_usage: {},
|
|
522
523
|
stripe_connect_account_id: acc_obj?.stripe_connect_account_obj?.id,
|
|
523
524
|
stripe_connect_account_status: acc_obj?.stripe_connect_account_status,
|
|
524
525
|
};
|
|
@@ -575,7 +576,7 @@ export const get_account_name = async function (req) {
|
|
|
575
576
|
if (data.code < 0) {
|
|
576
577
|
return data;
|
|
577
578
|
}
|
|
578
|
-
const { membership_plan = '', support_plan = '',
|
|
579
|
+
const { membership_plan = '', support_plan = '', ai_workspace_plan = '', date_created_ts = '' } = data.data;
|
|
579
580
|
var obj = {
|
|
580
581
|
first_name: '',
|
|
581
582
|
last_name: '',
|
|
@@ -585,7 +586,7 @@ export const get_account_name = async function (req) {
|
|
|
585
586
|
username: '',
|
|
586
587
|
membership_plan,
|
|
587
588
|
support_plan,
|
|
588
|
-
|
|
589
|
+
ai_workspace_plan,
|
|
589
590
|
date_created_ts,
|
|
590
591
|
};
|
|
591
592
|
if (data.data.account_info) {
|
|
@@ -606,7 +607,7 @@ export const get_account_name = async function (req) {
|
|
|
606
607
|
industry,
|
|
607
608
|
membership_plan,
|
|
608
609
|
support_plan,
|
|
609
|
-
|
|
610
|
+
ai_workspace_plan,
|
|
610
611
|
date_created_ts,
|
|
611
612
|
account_type,
|
|
612
613
|
address,
|