@xuda.io/account_module 1.2.2075 → 1.2.2076
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 +3 -3
- package/index_msa.mjs +314 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -52,7 +52,7 @@ const email_ms = await import(`${module_path}/email_module/index_ms.mjs`);
|
|
|
52
52
|
const marketplace_ms = await import(`${module_path}/marketplace_module/index_ms.mjs`);
|
|
53
53
|
const stripe_ms = await import(`${module_path}/stripe_module/index_ms.mjs`);
|
|
54
54
|
const logs_ms = await import(`${module_path}/logs_module/index_ms.mjs`);
|
|
55
|
-
|
|
55
|
+
|
|
56
56
|
const ws_dashboard_msa = await import(`${module_path}/ws_dashboard_module/index_msa.mjs`);
|
|
57
57
|
|
|
58
58
|
// const {get_active_account_profile_info} = await import(`${module_path}/ws_dashboard_module/get_active_account_profile_info.mjs`);
|
|
@@ -2562,7 +2562,7 @@ export const pin_contact = async function (req) {
|
|
|
2562
2562
|
|
|
2563
2563
|
const contact_save_ret = await save_contact(uid, contact_doc);
|
|
2564
2564
|
|
|
2565
|
-
|
|
2565
|
+
ws_dashboard_msa.emit_message_to_dashboard({
|
|
2566
2566
|
service: 'contact_pinned',
|
|
2567
2567
|
to: [uid],
|
|
2568
2568
|
data: await get_contact_info(uid, null, contact_id),
|
|
@@ -2606,7 +2606,7 @@ export const unpin_contact = async function (req) {
|
|
|
2606
2606
|
|
|
2607
2607
|
const contact_save_ret = await save_contact(uid, contact_doc);
|
|
2608
2608
|
|
|
2609
|
-
|
|
2609
|
+
ws_dashboard_msa.emit_message_to_dashboard({
|
|
2610
2610
|
service: 'contact_unpinned',
|
|
2611
2611
|
to: [uid],
|
|
2612
2612
|
data: await get_contact_info(uid, null, contact_id),
|
package/index_msa.mjs
ADDED
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
// =====================================================
|
|
2
|
+
// Queue wrapper – generated from index.mjs
|
|
3
|
+
// Queue target : account_module
|
|
4
|
+
// =====================================================
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
import path from 'node:path';
|
|
8
|
+
|
|
9
|
+
const { MessageBroker } = await import(path.join(process.env.XUDA_HOME, 'common', 'ms_broker.mjs'));
|
|
10
|
+
|
|
11
|
+
const broker = new MessageBroker();
|
|
12
|
+
|
|
13
|
+
await broker.init({
|
|
14
|
+
queueName: 'account_module',
|
|
15
|
+
module_in: global.module_in
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
export const update_account_info = function (...args) {
|
|
21
|
+
broker.send_to_queue_async("update_account_info", ...args);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const update_account_preferences = function (...args) {
|
|
25
|
+
broker.send_to_queue_async("update_account_preferences", ...args);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const save_admin_presets = function (...args) {
|
|
29
|
+
broker.send_to_queue_async("save_admin_presets", ...args);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const increment_account_usage = function (...args) {
|
|
33
|
+
broker.send_to_queue_async("increment_account_usage", ...args);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const get_account_data = function (...args) {
|
|
37
|
+
broker.send_to_queue_async("get_account_data", ...args);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const get_account_projects = function (...args) {
|
|
41
|
+
broker.send_to_queue_async("get_account_projects", ...args);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const get_account_datacenters = function (...args) {
|
|
45
|
+
broker.send_to_queue_async("get_account_datacenters", ...args);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const get_account_deployments = function (...args) {
|
|
49
|
+
broker.send_to_queue_async("get_account_deployments", ...args);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const get_account_instances = function (...args) {
|
|
53
|
+
broker.send_to_queue_async("get_account_instances", ...args);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export const get_account_info = function (...args) {
|
|
57
|
+
broker.send_to_queue_async("get_account_info", ...args);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export const get_active_account_profile_info = function (...args) {
|
|
61
|
+
broker.send_to_queue_async("get_active_account_profile_info", ...args);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export const get_account_name = function (...args) {
|
|
65
|
+
broker.send_to_queue_async("get_account_name", ...args);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export const account_validate_username = function (...args) {
|
|
69
|
+
broker.send_to_queue_async("account_validate_username", ...args);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export const verify_account = function (...args) {
|
|
73
|
+
broker.send_to_queue_async("verify_account", ...args);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export const validate_user_plan = function (...args) {
|
|
77
|
+
broker.send_to_queue_async("validate_user_plan", ...args);
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export const get_hosting_plan = function (...args) {
|
|
81
|
+
broker.send_to_queue_async("get_hosting_plan", ...args);
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export const get_cpu = function (...args) {
|
|
85
|
+
broker.send_to_queue_async("get_cpu", ...args);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export const add_account_log_util = function (...args) {
|
|
89
|
+
broker.send_to_queue_async("add_account_log_util", ...args);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export const save_ssh_key = function (...args) {
|
|
93
|
+
broker.send_to_queue_async("save_ssh_key", ...args);
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export const delete_ssh_key = function (...args) {
|
|
97
|
+
broker.send_to_queue_async("delete_ssh_key", ...args);
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export const get_ssh_keys = function (...args) {
|
|
101
|
+
broker.send_to_queue_async("get_ssh_keys", ...args);
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export const search_users = function (...args) {
|
|
105
|
+
broker.send_to_queue_async("search_users", ...args);
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
export const find_contact_duplicates = function (...args) {
|
|
109
|
+
broker.send_to_queue_async("find_contact_duplicates", ...args);
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export const merge_contact = function (...args) {
|
|
113
|
+
broker.send_to_queue_async("merge_contact", ...args);
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export const get_contact_info = function (...args) {
|
|
117
|
+
broker.send_to_queue_async("get_contact_info", ...args);
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export const get_pending_contact_out = function (...args) {
|
|
121
|
+
broker.send_to_queue_async("get_pending_contact_out", ...args);
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export const get_pending_contact_in = function (...args) {
|
|
125
|
+
broker.send_to_queue_async("get_pending_contact_in", ...args);
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export const get_pending_share_contact_in = function (...args) {
|
|
129
|
+
broker.send_to_queue_async("get_pending_share_contact_in", ...args);
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export const update_contact = function (...args) {
|
|
133
|
+
broker.send_to_queue_async("update_contact", ...args);
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export const get_account_rt_info = function (...args) {
|
|
137
|
+
broker.send_to_queue_async("get_account_rt_info", ...args);
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
export const validate_account_topup = function (...args) {
|
|
141
|
+
broker.send_to_queue_async("validate_account_topup", ...args);
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
export const create_account_oauth_link = function (...args) {
|
|
145
|
+
broker.send_to_queue_async("create_account_oauth_link", ...args);
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
export const get_default_project_account_doc = function (...args) {
|
|
149
|
+
broker.send_to_queue_async("get_default_project_account_doc", ...args);
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export const get_account_default_project_id = function (...args) {
|
|
153
|
+
broker.send_to_queue_async("get_account_default_project_id", ...args);
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
export const get_user_name = function (...args) {
|
|
157
|
+
broker.send_to_queue_async("get_user_name", ...args);
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export const get_user_card = function (...args) {
|
|
161
|
+
broker.send_to_queue_async("get_user_card", ...args);
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
export const onboarding_completed = function (...args) {
|
|
165
|
+
broker.send_to_queue_async("onboarding_completed", ...args);
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
export const ts_contact = function (...args) {
|
|
169
|
+
broker.send_to_queue_async("ts_contact", ...args);
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
export const get_account_ai_usage = function (...args) {
|
|
173
|
+
broker.send_to_queue_async("get_account_ai_usage", ...args);
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
export const add_contact = function (...args) {
|
|
177
|
+
broker.send_to_queue_async("add_contact", ...args);
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export const get_contacts = function (...args) {
|
|
181
|
+
broker.send_to_queue_async("get_contacts", ...args);
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export const archive_contact = function (...args) {
|
|
185
|
+
broker.send_to_queue_async("archive_contact", ...args);
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
export const delete_contact = function (...args) {
|
|
189
|
+
broker.send_to_queue_async("delete_contact", ...args);
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
export const unarchive_contact = function (...args) {
|
|
193
|
+
broker.send_to_queue_async("unarchive_contact", ...args);
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
export const unfriend_contact = function (...args) {
|
|
197
|
+
broker.send_to_queue_async("unfriend_contact", ...args);
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
export const pin_contact = function (...args) {
|
|
201
|
+
broker.send_to_queue_async("pin_contact", ...args);
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export const set_contact_deep_research = function (...args) {
|
|
205
|
+
broker.send_to_queue_async("set_contact_deep_research", ...args);
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
export const unpin_contact = function (...args) {
|
|
209
|
+
broker.send_to_queue_async("unpin_contact", ...args);
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
export const not_spam_contact = function (...args) {
|
|
213
|
+
broker.send_to_queue_async("not_spam_contact", ...args);
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
export const generate_contact_avatar = function (...args) {
|
|
217
|
+
broker.send_to_queue_async("generate_contact_avatar", ...args);
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
export const set_deep_research_contact = function (...args) {
|
|
221
|
+
broker.send_to_queue_async("set_deep_research_contact", ...args);
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
export const unset_deep_research_contact = function (...args) {
|
|
225
|
+
broker.send_to_queue_async("unset_deep_research_contact", ...args);
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
export const get_pending_share_profile_in = function (...args) {
|
|
229
|
+
broker.send_to_queue_async("get_pending_share_profile_in", ...args);
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
export const get_account_profile_info = function (...args) {
|
|
233
|
+
broker.send_to_queue_async("get_account_profile_info", ...args);
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
export const get_account_profiles = function (...args) {
|
|
237
|
+
broker.send_to_queue_async("get_account_profiles", ...args);
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
export const archive_account_profile = function (...args) {
|
|
241
|
+
broker.send_to_queue_async("archive_account_profile", ...args);
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
export const delete_account_profile = function (...args) {
|
|
245
|
+
broker.send_to_queue_async("delete_account_profile", ...args);
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
export const unarchive_account_profile = function (...args) {
|
|
249
|
+
broker.send_to_queue_async("unarchive_account_profile", ...args);
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
export const create_account_profile = function (...args) {
|
|
253
|
+
broker.send_to_queue_async("create_account_profile", ...args);
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
export const update_account_profile = function (...args) {
|
|
257
|
+
broker.send_to_queue_async("update_account_profile", ...args);
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
export const update_entity_account_profiles = function (...args) {
|
|
261
|
+
broker.send_to_queue_async("update_entity_account_profiles", ...args);
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
export const get_contact = function (...args) {
|
|
265
|
+
broker.send_to_queue_async("get_contact", ...args);
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
export const save_contact = function (...args) {
|
|
269
|
+
broker.send_to_queue_async("save_contact", ...args);
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
export const find_contact_query = function (...args) {
|
|
273
|
+
broker.send_to_queue_async("find_contact_query", ...args);
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
export const delete_xuda_cache = function (...args) {
|
|
277
|
+
broker.send_to_queue_async("delete_xuda_cache", ...args);
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
export const save_xuda_cache = function (...args) {
|
|
281
|
+
broker.send_to_queue_async("save_xuda_cache", ...args);
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
export const get_xuda_cache = function (...args) {
|
|
285
|
+
broker.send_to_queue_async("get_xuda_cache", ...args);
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
export const save_cache_hit = function (...args) {
|
|
289
|
+
broker.send_to_queue_async("save_cache_hit", ...args);
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
export const record_ai_usage = function (...args) {
|
|
293
|
+
broker.send_to_queue_async("record_ai_usage", ...args);
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
export const record_ai_credit = function (...args) {
|
|
297
|
+
broker.send_to_queue_async("record_ai_credit", ...args);
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
export const add_ai_credits_to_active_accounts = function (...args) {
|
|
301
|
+
broker.send_to_queue_async("add_ai_credits_to_active_accounts", ...args);
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
export const archive_expire_ai_credits = function (...args) {
|
|
305
|
+
broker.send_to_queue_async("archive_expire_ai_credits", ...args);
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
export const read_accounts_emails = function (...args) {
|
|
309
|
+
broker.send_to_queue_async("read_accounts_emails", ...args);
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
export const process_accounts_emails = function (...args) {
|
|
313
|
+
broker.send_to_queue_async("process_accounts_emails", ...args);
|
|
314
|
+
};
|