@xuda.io/account_module 1.2.2253 → 1.2.2254
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 +8 -1
- package/index_ms.mjs +4 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -731,6 +731,12 @@ export const get_active_account_profile_info = async function (uid, profile_id)
|
|
|
731
731
|
}
|
|
732
732
|
};
|
|
733
733
|
|
|
734
|
+
export const get_account_profile_group_member_uids = async function (owner_uid, share_item_id) {
|
|
735
|
+
const selector = { docType: 'team_request', team_req_stat: 3, share_item_id, access_type: 'account_profile', team_req_from_uid: owner_uid };
|
|
736
|
+
const ret = await db_module.find_couch_query('xuda_team', { selector });
|
|
737
|
+
return (ret?.docs || []).map((d) => d.team_req_to_uid).filter(Boolean);
|
|
738
|
+
};
|
|
739
|
+
|
|
734
740
|
export const get_account_name = async function (req) {
|
|
735
741
|
const data = await db_module.get_couch_doc('xuda_accounts', req.uid_query || req.uid);
|
|
736
742
|
if (data.code < 0) {
|
|
@@ -3247,7 +3253,8 @@ export const get_account_profiles = async function (req) {
|
|
|
3247
3253
|
}
|
|
3248
3254
|
}
|
|
3249
3255
|
|
|
3250
|
-
if (filter_type === 'all' && !profile_id && !search && active_tab && profile_docs.docs
|
|
3256
|
+
if (filter_type === 'all' && !profile_id && !search && active_tab && profile_docs.docs[0].main) {
|
|
3257
|
+
//profile_docs.docs.length === 1 &&
|
|
3251
3258
|
// return empty state if no custom profile defined by user
|
|
3252
3259
|
return {
|
|
3253
3260
|
code: 1,
|
package/index_ms.mjs
CHANGED
|
@@ -69,6 +69,10 @@ export const get_account_name = async function (...args) {
|
|
|
69
69
|
return await broker.send_to_queue("get_account_name", ...args);
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
+
export const get_account_profile_group_member_uids = async function (...args) {
|
|
73
|
+
return await broker.send_to_queue("get_account_profile_group_member_uids", ...args);
|
|
74
|
+
};
|
|
75
|
+
|
|
72
76
|
export const account_validate_username = async function (...args) {
|
|
73
77
|
return await broker.send_to_queue("account_validate_username", ...args);
|
|
74
78
|
};
|