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